Skip to content

Commit 550eac4

Browse files
authored
Update Custom Voice API version in rest.md
1 parent 5eed2be commit 550eac4

File tree

1 file changed

+14
-14
lines changed
  • articles/ai-services/speech-service/includes/how-to/professional-voice/deploy-endpoint

1 file changed

+14
-14
lines changed

articles/ai-services/speech-service/includes/how-to/professional-voice/deploy-endpoint/rest.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ After you've successfully created and [trained](../../../../professional-voice-t
1616
1717
## Add a deployment endpoint
1818

19-
To create an endpoint, use the [Endpoints_Create](/rest/api/speechapi/endpoints/create) operation of the custom voice API. Construct the request body according to the following instructions:
19+
To create an endpoint, use the [Endpoints_Create](/rest/api/aiservices/speechapi/endpoints/create) operation of the custom voice API. Construct the request body according to the following instructions:
2020

2121
- Set the required `projectId` property. See [create a project](../../../../professional-voice-create-project.md).
2222
- Set the required `modelId` property. See [train a voice model](../../../../professional-voice-train-voice.md).
2323
- Set the required `description` property. The description can be changed later.
2424

25-
Make an HTTP PUT request using the URI as shown in the following [Endpoints_Create](/rest/api/speechapi/endpoints/create) example.
25+
Make an HTTP PUT request using the URI as shown in the following [Endpoints_Create](/rest/api/aiservices/speechapi/endpoints/create) example.
2626
- Replace `YourResourceKey` with your Speech resource key.
2727
- Replace `YourResourceRegion` with your Speech resource region.
2828
- Replace `EndpointId` with an endpoint ID of your choice. The ID must be a GUID and must be unique within your Speech resource. The ID will be used in the project's URI and can't be changed later.
@@ -32,7 +32,7 @@ curl -v -X PUT -H "Ocp-Apim-Subscription-Key: YourResourceKey" -H "Content-Type:
3232
"description": "Endpoint for Jessica voice",
3333
"projectId": "ProjectId",
3434
"modelId": "JessicaModelId",
35-
} ' "https://YourResourceRegion.api.cognitive.microsoft.com/customvoice/endpoints/EndpointId?api-version=2023-12-01-preview"
35+
} ' "https://YourResourceRegion.api.cognitive.microsoft.com/customvoice/endpoints/EndpointId?api-version=2024-02-01-preview"
3636
```
3737

3838
You should receive a response body in the following format:
@@ -52,10 +52,10 @@ You should receive a response body in the following format:
5252
}
5353
```
5454

55-
The response header contains the `Operation-Location` property. Use this URI to get details about the [Endpoints_Create](/rest/api/speechapi/endpoints/create) operation. Here's an example of the response header:
55+
The response header contains the `Operation-Location` property. Use this URI to get details about the [Endpoints_Create](/rest/api/aiservices/speechapi/endpoints/create) operation. Here's an example of the response header:
5656

5757
```HTTP 201
58-
Operation-Location: https://eastus.api.cognitive.microsoft.com/customvoice/operations/284b7e37-f42d-4054-8fa9-08523c3de345?api-version=2023-12-01-preview
58+
Operation-Location: https://eastus.api.cognitive.microsoft.com/customvoice/operations/284b7e37-f42d-4054-8fa9-08523c3de345?api-version=2024-02-01-preview
5959
Operation-Id: 284b7e37-f42d-4054-8fa9-08523c3de345
6060
```
6161

@@ -83,15 +83,15 @@ To use a custom voice via [Speech Synthesis Markup Language (SSML)](../../../../
8383

8484
You can suspend or resume an endpoint, to limit spend and conserve resources that aren't in use. You won't be charged while the endpoint is suspended. When you resume an endpoint, you can continue to use the same endpoint URL in your application to synthesize speech.
8585

86-
To suspend an endpoint, use the [Endpoints_Suspend](/rest/api/speechapi/endpoints/suspend) operation of the custom voice API.
86+
To suspend an endpoint, use the [Endpoints_Suspend](/rest/api/aiservices/speechapi/endpoints/suspend) operation of the custom voice API.
8787

88-
Make an HTTP POST request using the URI as shown in the following [Endpoints_Suspend](/rest/api/speechapi/endpoints/suspend) example.
88+
Make an HTTP POST request using the URI as shown in the following [Endpoints_Suspend](/rest/api/aiservices/speechapi/endpoints/suspend) example.
8989
- Replace `YourResourceKey` with your Speech resource key.
9090
- Replace `YourResourceRegion` with your Speech resource region.
9191
- Replace `YourEndpointId` with the endpoint ID that you received when you created the endpoint.
9292

9393
```azurecli-interactive
94-
curl -v -X POST "https://YourResourceRegion.api.cognitive.microsoft.com/customvoice/endpoints/YourEndpointId:suspend?api-version=2023-12-01-preview" -H "Ocp-Apim-Subscription-Key: YourResourceKey" -H "content-type: application/json" -H "content-length: 0"
94+
curl -v -X POST "https://YourResourceRegion.api.cognitive.microsoft.com/customvoice/endpoints/YourEndpointId:suspend?api-version=2024-02-01-preview" -H "Ocp-Apim-Subscription-Key: YourResourceKey" -H "content-type: application/json" -H "content-length: 0"
9595
```
9696

9797
You should receive a response body in the following format:
@@ -113,15 +113,15 @@ You should receive a response body in the following format:
113113

114114
## Resume an endpoint
115115

116-
To suspend an endpoint, use the [Endpoints_Resume](/rest/api/speechapi/endpoints/resume) operation of the custom voice API.
116+
To suspend an endpoint, use the [Endpoints_Resume](/rest/api/aiservices/speechapi/endpoints/resume) operation of the custom voice API.
117117

118-
Make an HTTP POST request using the URI as shown in the following [Endpoints_Resume](/rest/api/speechapi/endpoints/resume) example.
118+
Make an HTTP POST request using the URI as shown in the following [Endpoints_Resume](/rest/api/aiservices/speechapi/endpoints/resume) example.
119119
- Replace `YourResourceKey` with your Speech resource key.
120120
- Replace `YourResourceRegion` with your Speech resource region.
121121
- Replace `YourEndpointId` with the endpoint ID that you received when you created the endpoint.
122122

123123
```azurecli-interactive
124-
curl -v -X POST "https://YourResourceRegion.api.cognitive.microsoft.com/customvoice/endpoints/YourEndpointId:resume?api-version=2023-12-01-preview" -H "Ocp-Apim-Subscription-Key: YourResourceKey" -H "content-type: application/json" -H "content-length: 0"
124+
curl -v -X POST "https://YourResourceRegion.api.cognitive.microsoft.com/customvoice/endpoints/YourEndpointId:resume?api-version=2024-02-01-preview" -H "Ocp-Apim-Subscription-Key: YourResourceKey" -H "content-type: application/json" -H "content-length: 0"
125125
```
126126

127127
You should receive a response body in the following format:
@@ -143,15 +143,15 @@ You should receive a response body in the following format:
143143

144144
## Delete an endpoint
145145

146-
To delete an endpoint, use the [Endpoints_Delete](/rest/api/speechapi/endpoints/delete) operation of the custom voice API.
146+
To delete an endpoint, use the [Endpoints_Delete](/rest/api/aiservices/speechapi/endpoints/delete) operation of the custom voice API.
147147

148-
Make an HTTP DELETE request using the URI as shown in the following [Endpoints_Delete](/rest/api/speechapi/endpoints/delete) example.
148+
Make an HTTP DELETE request using the URI as shown in the following [Endpoints_Delete](/rest/api/aiservices/speechapi/endpoints/delete) example.
149149
- Replace `YourResourceKey` with your Speech resource key.
150150
- Replace `YourResourceRegion` with your Speech resource region.
151151
- Replace `YourEndpointId` with the endpoint ID that you received when you created the endpoint.
152152

153153
```azurecli-interactive
154-
curl -v -X DELETE "https://YourResourceRegion.api.cognitive.microsoft.com/customvoice/endpoints/YourEndpointId?api-version=2023-12-01-preview" -H "Ocp-Apim-Subscription-Key: YourResourceKey"
154+
curl -v -X DELETE "https://YourResourceRegion.api.cognitive.microsoft.com/customvoice/endpoints/YourEndpointId?api-version=2024-02-01-preview" -H "Ocp-Apim-Subscription-Key: YourResourceKey"
155155
```
156156

157157
You should receive a response header with status code 204.

0 commit comments

Comments
 (0)