Skip to content

Commit 2556ace

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

File tree

1 file changed

+8
-8
lines changed
  • articles/ai-services/speech-service/includes/how-to/professional-voice/create-training-set

1 file changed

+8
-8
lines changed

articles/ai-services/speech-service/includes/how-to/professional-voice/create-training-set/rest.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ In this article, you [create a training set](#create-a-training-set) and get its
1515

1616
## Create a training set
1717

18-
To create a training set, use the [TrainingSets_Create](/rest/api/speechapi/training-sets/create) operation of the custom voice API. Construct the request body according to the following instructions:
18+
To create a training set, use the [TrainingSets_Create](/rest/api/aiservices/speechapi/training-sets/create) operation of the custom voice API. Construct the request body according to the following instructions:
1919

2020
- Set the required `projectId` property. See [create a project](../../../../professional-voice-create-project.md).
2121
- Set the required `voiceKind` property to `Male` or `Female`. The kind can't be changed later.
2222
- Set the required `locale` property. This should be the locale of the training set data. The locale of the training set should be the same as the locale of the [consent statement](../../../../professional-voice-create-consent.md). The locale can't be changed later. You can find the text to speech locale list [here](/azure/ai-services/speech-service/language-support?tabs=tts).
2323
- Optionally, set the `description` property for the training set description. The training set description can be changed later.
2424

25-
Make an HTTP PUT request using the URI as shown in the following [TrainingSets_Create](/rest/api/speechapi/training-sets/create) example.
25+
Make an HTTP PUT request using the URI as shown in the following [TrainingSets_Create](/rest/api/aiservices/speechapi/training-sets/create) example.
2626
- Replace `YourResourceKey` with your Speech resource key.
2727
- Replace `YourResourceRegion` with your Speech resource region.
2828
- Replace `JessicaTrainingSetId` with a training set ID of your choice. The case sensitive ID will be used in the training set's URI and can't be changed later.
@@ -33,7 +33,7 @@ curl -v -X PUT -H "Ocp-Apim-Subscription-Key: YourResourceKey" -H "Content-Type:
3333
"projectId": "ProjectId",
3434
"locale": "en-US",
3535
"voiceKind": "Female"
36-
} ' "https://YourResourceRegion.api.cognitive.microsoft.com/customvoice/trainingsets/JessicaTrainingSetId?api-version=2023-12-01-preview"
36+
} ' "https://YourResourceRegion.api.cognitive.microsoft.com/customvoice/trainingsets/JessicaTrainingSetId?api-version=2024-02-01-preview"
3737
```
3838

3939
You should receive a response body in the following format:
@@ -53,7 +53,7 @@ You should receive a response body in the following format:
5353

5454
## Upload training set data
5555

56-
To upload a training set of audio and scripts, use the [TrainingSets_UploadData](/rest/api/speechapi/training-sets/upload-data) operation of the custom voice API.
56+
To upload a training set of audio and scripts, use the [TrainingSets_UploadData](/rest/api/aiservices/speechapi/training-sets/upload-data) operation of the custom voice API.
5757

5858
Before calling this API, please store recording and script files in Azure Blob. In the example below, recording files are https://contoso.blob.core.windows.net/voicecontainer/jessica300/*.wav, script files are
5959
https://contoso.blob.core.windows.net/voicecontainer/jessica300/*.txt.
@@ -70,7 +70,7 @@ Construct the request body according to the following instructions:
7070
- Set the required `extensions` property to the extensions of the script files.
7171
- Optionally, set the `prefix` property to set a prefix for the blob name.
7272

73-
Make an HTTP POST request using the URI as shown in the following [TrainingSets_UploadData](/rest/api/speechapi/training-sets/upload-data) example.
73+
Make an HTTP POST request using the URI as shown in the following [TrainingSets_UploadData](/rest/api/aiservices/speechapi/training-sets/upload-data) example.
7474
- Replace `YourResourceKey` with your Speech resource key.
7575
- Replace `YourResourceRegion` with your Speech resource region.
7676
- Replace `JessicaTrainingSetId` if you specified a different training set ID in the previous step.
@@ -92,13 +92,13 @@ curl -v -X POST -H "Ocp-Apim-Subscription-Key: YourResourceKey" -H "Content-Type
9292
".txt"
9393
]
9494
}
95-
} ' "https://YourResourceRegion.api.cognitive.microsoft.com/customvoice/trainingsets/JessicaTrainingSetId:upload?api-version=2023-12-01-preview"
95+
} ' "https://YourResourceRegion.api.cognitive.microsoft.com/customvoice/trainingsets/JessicaTrainingSetId:upload?api-version=2024-02-01-preview"
9696
```
9797

98-
The response header contains the `Operation-Location` property. Use this URI to get details about the [TrainingSets_UploadData](/rest/api/speechapi/training-sets/upload-data) operation. Here's an example of the response header:
98+
The response header contains the `Operation-Location` property. Use this URI to get details about the [TrainingSets_UploadData](/rest/api/aiservices/speechapi/training-sets/upload-data) operation. Here's an example of the response header:
9999

100100
```HTTP 201
101-
Operation-Location: https://eastus.api.cognitive.microsoft.com/customvoice/operations/284b7e37-f42d-4054-8fa9-08523c3de345?api-version=2023-12-01-preview
101+
Operation-Location: https://eastus.api.cognitive.microsoft.com/customvoice/operations/284b7e37-f42d-4054-8fa9-08523c3de345?api-version=2024-02-01-preview
102102
Operation-Id: 284b7e37-f42d-4054-8fa9-08523c3de345
103103
```
104104

0 commit comments

Comments
 (0)