Skip to content

Commit 5eed2be

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

File tree

1 file changed

+12
-12
lines changed
  • articles/ai-services/speech-service/includes/how-to/professional-voice/train-voice

1 file changed

+12
-12
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The language of the training data must be one of the [languages that are support
4040

4141
# [Neural](#tab/neural)
4242

43-
To create a neural voice, use the [Models_Create](/rest/api/speechapi/models/create) operation of the custom voice API. Construct the request body according to the following instructions:
43+
To create a neural voice, use the [Models_Create](/rest/api/aiservices/speechapi/models/create) operation of the custom voice API. Construct the request body according to the following instructions:
4444

4545
- Set the required `projectId` property. See [create a project](../../../../professional-voice-create-project.md).
4646
- Set the required `consentId` property. See [add voice talent consent](../../../../professional-voice-create-consent.md).
@@ -49,7 +49,7 @@ To create a neural voice, use the [Models_Create](/rest/api/speechapi/models/cre
4949
- Set the required `voiceName` property. The voice name must end with "Neural" and can't be changed later. Choose a name carefully. The voice name is used in your [speech synthesis request](../../../../professional-voice-deploy-endpoint.md#use-your-custom-voice) by the SDK and SSML input. Only letters, numbers, and a few punctuation characters are allowed. Use different names for different neural voice models.
5050
- Optionally, set the `description` property for the voice description. The voice description can be changed later.
5151

52-
Make an HTTP PUT request using the URI as shown in the following [Models_Create](/rest/api/speechapi/models/create) example.
52+
Make an HTTP PUT request using the URI as shown in the following [Models_Create](/rest/api/aiservices/speechapi/models/create) example.
5353
- Replace `YourResourceKey` with your Speech resource key.
5454
- Replace `YourResourceRegion` with your Speech resource region.
5555
- Replace `JessicaModelId` with a model ID of your choice. The case sensitive ID will be used in the model's URI and can't be changed later.
@@ -64,7 +64,7 @@ curl -v -X PUT -H "Ocp-Apim-Subscription-Key: YourResourceKey" -H "Content-Type:
6464
"projectId": "ProjectId",
6565
"consentId": "JessicaConsentId",
6666
"trainingSetId": "JessicaTrainingSetId"
67-
} ' "https://YourResourceRegion.api.cognitive.microsoft.com/customvoice/models/JessicaModelId?api-version=2023-12-01-preview"
67+
} ' "https://YourResourceRegion.api.cognitive.microsoft.com/customvoice/models/JessicaModelId?api-version=2024-02-01-preview"
6868
```
6969

7070
You should receive a response body in the following format:
@@ -93,7 +93,7 @@ You should receive a response body in the following format:
9393

9494
# [Neural - cross lingual](#tab/crosslingual)
9595

96-
To create a cross lingual neural voice, use the [Models_Create](/rest/api/speechapi/models/create) operation of the custom voice API. Construct the request body according to the following instructions:
96+
To create a cross lingual neural voice, use the [Models_Create](/rest/api/aiservices/speechapi/models/create) operation of the custom voice API. Construct the request body according to the following instructions:
9797

9898
- Set the required `projectId` property. See [create a project](../../../../professional-voice-create-project.md).
9999
- Set the required `consentId` property. See [add voice talent consent](../../../../professional-voice-create-consent.md).
@@ -103,7 +103,7 @@ To create a cross lingual neural voice, use the [Models_Create](/rest/api/speech
103103
- Set the required `locale` property for the language that your voice speaks. The voice speaks a different language from your training data. You can specify only one target language for a voice model.
104104
- Optionally, set the `description` property for the voice description. The voice description can be changed later.
105105

106-
Make an HTTP PUT request using the URI as shown in the following [Models_Create](/rest/api/speechapi/models/create) example.
106+
Make an HTTP PUT request using the URI as shown in the following [Models_Create](/rest/api/aiservices/speechapi/models/create) example.
107107
- Replace `YourResourceKey` with your Speech resource key.
108108
- Replace `YourResourceRegion` with your Speech resource region.
109109
- Replace `JessicaModelId` with a model ID of your choice. The case sensitive ID will be used in the model's URI and can't be changed later.
@@ -119,7 +119,7 @@ curl -v -X PUT -H "Ocp-Apim-Subscription-Key: YourResourceKey" -H "Content-Type:
119119
"consentId": "JessicaConsentId",
120120
"trainingSetId": "Jessica-en-US-TrainingSetId",
121121
"locale": "fr-FR"
122-
} ' "https://YourResourceRegion.api.cognitive.microsoft.com/customvoice/models/JessicaModelId?api-version=2023-12-01-preview"
122+
} ' "https://YourResourceRegion.api.cognitive.microsoft.com/customvoice/models/JessicaModelId?api-version=2024-02-01-preview"
123123
```
124124

125125
You should receive a response body in the following format:
@@ -146,7 +146,7 @@ You should receive a response body in the following format:
146146

147147
# [Neural - multi style](#tab/multistyle)
148148

149-
To create a multi-style neural voice, use the [Models_Create](/rest/api/speechapi/models/create) operation of the custom voice API. Construct the request body according to the following instructions:
149+
To create a multi-style neural voice, use the [Models_Create](/rest/api/aiservices/speechapi/models/create) operation of the custom voice API. Construct the request body according to the following instructions:
150150

151151
- Set the required `projectId` property. See [create a project](../../../../professional-voice-create-project.md).
152152
- Set the required `consentId` property. See [add voice talent consent](../../../../professional-voice-create-consent.md).
@@ -161,7 +161,7 @@ To create a multi-style neural voice, use the [Models_Create](/rest/api/speechap
161161
- For each dictionary value, specify the ID of a training set that you [already created](../../../../professional-voice-create-training-set.md#add-a-professional-voice-training-dataset) for the same voice model. The training set must contain at least 100 utterances for each style.
162162
- Optionally, set the `description` property for the voice description. The voice description can be changed later.
163163

164-
Make an HTTP PUT request using the URI as shown in the following [Models_Create](/rest/api/speechapi/models/create) example.
164+
Make an HTTP PUT request using the URI as shown in the following [Models_Create](/rest/api/aiservices/speechapi/models/create) example.
165165
- Replace `YourResourceKey` with your Speech resource key.
166166
- Replace `YourResourceRegion` with your Speech resource region.
167167
- Replace `JessicaModelId` with a model ID of your choice. The case sensitive ID will be used in the model's URI and can't be changed later.
@@ -187,7 +187,7 @@ curl -v -X PUT -H "Ocp-Apim-Subscription-Key: YourResourceKey" -H "Content-Type:
187187
"myStyle2": "JessicaStyle2TrainingSetId"
188188
}
189189
}
190-
} ' "https://YourResourceRegion.api.cognitive.microsoft.com/customvoice/models/JessicaModelId?api-version=2023-12-01-preview"
190+
} ' "https://YourResourceRegion.api.cognitive.microsoft.com/customvoice/models/JessicaModelId?api-version=2024-02-01-preview"
191191
```
192192

193193
You should receive a response body in the following format:
@@ -243,15 +243,15 @@ The following table summarizes the different preset styles according to differen
243243

244244
## Get training status
245245

246-
To get the training status of a voice model, use the [Models_Get](/rest/api/speechapi/models/get) operation of the custom voice API. Construct the request URI according to the following instructions:
246+
To get the training status of a voice model, use the [Models_Get](/rest/api/aiservices/speechapi/models/get) operation of the custom voice API. Construct the request URI according to the following instructions:
247247

248-
Make an HTTP GET request using the URI as shown in the following [Models_Get](/rest/api/speechapi/models/get) example.
248+
Make an HTTP GET request using the URI as shown in the following [Models_Get](/rest/api/aiservices/speechapi/models/get) example.
249249
- Replace `YourResourceKey` with your Speech resource key.
250250
- Replace `YourResourceRegion` with your Speech resource region.
251251
- Replace `JessicaModelId` if you specified a different model ID in the previous step.
252252

253253
```azurecli-interactive
254-
curl -v -X GET "https://YourResourceRegion.api.cognitive.microsoft.com/customvoice/models/JessicaModelId?api-version=2023-12-01-preview" -H "Ocp-Apim-Subscription-Key: YourResourceKey"
254+
curl -v -X GET "https://YourResourceRegion.api.cognitive.microsoft.com/customvoice/models/JessicaModelId?api-version=2024-02-01-preview" -H "Ocp-Apim-Subscription-Key: YourResourceKey"
255255
```
256256

257257
You should receive a response body in the following format.

0 commit comments

Comments
 (0)