Skip to content

Commit 19e0a66

Browse files
Merge pull request #261962 from ForrestGumb/patch-9
Update rest.md
2 parents b3351ea + 830dcd4 commit 19e0a66

File tree

1 file changed

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

1 file changed

+8
-3
lines changed

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,20 @@ 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` operation of the custom voice API. Construct the request body according to the following instructions:
56+
To upload a training set of audio and scripts, use the `TrainingSets_UploadData` operation of the custom voice API.
57+
58+
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
59+
https://contoso.blob.core.windows.net/voicecontainer/jessica300/*.txt.
60+
61+
Construct the request body according to the following instructions:
5762

5863
- Set the required `kind` property to `AudioAndScript`. The kind determines the type of training set.
5964
- Set the required `audios` property. Within the `audios` property, set the following properties:
60-
- Set the required `containerUrl` property to the URL of the Azure Blob Storage container that contains the audio files.
65+
- Set the required `containerUrl` property to the URL of the Azure Blob Storage container that contains the audio files. Use [shared access signatures (SAS) for a container](/azure/storage/blobs/sas-service-create-dotnet-container#create-a-service-sas-for-a-container) with both read and list permissions.
6166
- Set the required `extensions` property to the extensions of the audio files.
6267
- Optionally, set the `prefix` property to set a prefix for the blob name.
6368
- Set the required `scripts` property. Within the `scripts` property, set the following properties:
64-
- Set the required `containerUrl` property to the URL of the Azure Blob Storage container that contains the script files.
69+
- Set the required `containerUrl` property to the URL of the Azure Blob Storage container that contains the script files. Use [shared access signatures (SAS) for a container](/azure/storage/blobs/sas-service-create-dotnet-container#create-a-service-sas-for-a-container) with both read and list permissions.
6570
- Set the required `extensions` property to the extensions of the script files.
6671
- Optionally, set the `prefix` property to set a prefix for the blob name.
6772

0 commit comments

Comments
 (0)