Skip to content

Commit 5f8a534

Browse files
authored
Update Custom Voice API version in personal-voice-create-voice.md
1 parent d94ad85 commit 5f8a534

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

articles/ai-services/speech-service/personal-voice-create-voice.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,26 @@ You create a speaker profile ID based on the speaker's verbal consent statement
2121
> [!NOTE]
2222
> The personal voice ID and speaker profile ID aren't same. You can choose the personal voice ID, but the speaker profile ID is generated by the service. The personal voice ID is used to manage the personal voice. The speaker profile ID is used for text to speech.
2323
24-
You provide the audio files [from a publicly accessible URL](#create-personal-voice-from-a-url) ([PersonalVoices_Create](/rest/api/speechapi/personal-voices/create)) or [upload the audio files](#create-personal-voice-from-a-file) ([PersonalVoices_Post](/rest/api/speechapi/personal-voices/post)).
24+
You provide the audio files [from a publicly accessible URL](#create-personal-voice-from-a-url) ([PersonalVoices_Create](/rest/api/aiservices/speechapi/personal-voices/create)) or [upload the audio files](#create-personal-voice-from-a-file) ([PersonalVoices_Post](/rest/api/aiservices/speechapi/personal-voices/post)).
2525

2626
## Create personal voice from a file
2727

2828
In this scenario, the audio files must be available locally.
2929

30-
To create a personal voice and get the speaker profile ID, use the [PersonalVoices_Post](/rest/api/speechapi/personal-voices/post) operation of the custom voice API. Construct the request body according to the following instructions:
30+
To create a personal voice and get the speaker profile ID, use the [PersonalVoices_Post](/rest/api/aiservices/speechapi/personal-voices/post) operation of the custom voice API. Construct the request body according to the following instructions:
3131

3232
- Set the required `projectId` property. See [create a project](./personal-voice-create-project.md).
3333
- Set the required `consentId` property. See [add user consent](./personal-voice-create-consent.md).
3434
- Set the required `audiodata` property. You can specify one or more audio files in the same request.
3535

36-
Make an HTTP POST request using the URI as shown in the following [PersonalVoices_Post](/rest/api/speechapi/personal-voices/post) example.
36+
Make an HTTP POST request using the URI as shown in the following [PersonalVoices_Post](/rest/api/aiservices/speechapi/personal-voices/post) example.
3737
- Replace `YourResourceKey` with your Speech resource key.
3838
- Replace `YourResourceRegion` with your Speech resource region.
3939
- Replace `JessicaPersonalVoiceId` with a personal voice ID of your choice. The case sensitive ID will be used in the personal voice's URI and can't be changed later.
4040

4141
```azurecli-interactive
4242
curl -v -X POST -H "Ocp-Apim-Subscription-Key: YourResourceKey" -F 'projectId="ProjectId"' -F 'consentId="JessicaConsentId"' -F 'audiodata=@"D:\PersonalVoiceTest\CNVSample001.wav"' -F 'audiodata=@"D:\PersonalVoiceTest\CNVSample002.wav"' "
43-
https://YourResourceRegion.api.cognitive.microsoft.com/customvoice/personalvoices/JessicaPersonalVoiceId?api-version=2023-12-01-preview"
43+
https://YourResourceRegion.api.cognitive.microsoft.com/customvoice/personalvoices/JessicaPersonalVoiceId?api-version=2024-02-01-preview"
4444
```
4545

4646
You should receive a response body in the following format:
@@ -59,18 +59,18 @@ You should receive a response body in the following format:
5959

6060
Use the `speakerProfileId` property to integrate personal voice in your text to speech application. For more information, see [use personal voice in your application](./personal-voice-how-to-use.md).
6161

62-
The response header contains the `Operation-Location` property. Use this URI to get details about the [PersonalVoices_Post](/rest/api/speechapi/personal-voices/post) operation. Here's an example of the response header:
62+
The response header contains the `Operation-Location` property. Use this URI to get details about the [PersonalVoices_Post](/rest/api/aiservices/speechapi/personal-voices/post) operation. Here's an example of the response header:
6363

6464
```HTTP 201
65-
Operation-Location: https://eastus.api.cognitive.microsoft.com/customvoice/operations/1321a2c0-9be4-471d-83bb-bc3be4f96a6f?api-version=2023-12-01-preview
65+
Operation-Location: https://eastus.api.cognitive.microsoft.com/customvoice/operations/1321a2c0-9be4-471d-83bb-bc3be4f96a6f?api-version=2024-02-01-preview
6666
Operation-Id: 1321a2c0-9be4-471d-83bb-bc3be4f96a6f
6767
```
6868

6969
## Create personal voice from a URL
7070

7171
In this scenario, the audio files must already be stored in an Azure Blob Storage container.
7272

73-
To create a personal voice and get the speaker profile ID, use the [PersonalVoices_Create](/rest/api/speechapi/personal-voices/create) operation of the custom voice API. Construct the request body according to the following instructions:
73+
To create a personal voice and get the speaker profile ID, use the [PersonalVoices_Create](/rest/api/aiservices/speechapi/personal-voices/create) operation of the custom voice API. Construct the request body according to the following instructions:
7474

7575
- Set the required `projectId` property. See [create a project](./personal-voice-create-project.md).
7676
- Set the required `consentId` property. See [add user consent](./personal-voice-create-consent.md).
@@ -79,7 +79,7 @@ To create a personal voice and get the speaker profile ID, use the [PersonalVoic
7979
- Set the required `extensions` property to the extensions of the audio files.
8080
- Optionally, set the `prefix` property to set a prefix for the blob name.
8181

82-
Make an HTTP PUT request using the URI as shown in the following [PersonalVoices_Create](/rest/api/speechapi/personal-voices/create) example.
82+
Make an HTTP PUT request using the URI as shown in the following [PersonalVoices_Create](/rest/api/aiservices/speechapi/personal-voices/create) example.
8383
- Replace `YourResourceKey` with your Speech resource key.
8484
- Replace `YourResourceRegion` with your Speech resource region.
8585
- Replace `JessicaPersonalVoiceId` with a personal voice ID of your choice. The case sensitive ID will be used in the personal voice's URI and can't be changed later.
@@ -95,7 +95,7 @@ curl -v -X PUT -H "Ocp-Apim-Subscription-Key: YourResourceKey" -H "Content-Type:
9595
".wav"
9696
]
9797
}
98-
} ' "https://YourResourceRegion.api.cognitive.microsoft.com/customvoice/personalvoices/JessicaPersonalVoiceId?api-version=2023-12-01-preview"
98+
} ' "https://YourResourceRegion.api.cognitive.microsoft.com/customvoice/personalvoices/JessicaPersonalVoiceId?api-version=2024-02-01-preview"
9999
```
100100

101101
You should receive a response body in the following format:
@@ -114,10 +114,10 @@ You should receive a response body in the following format:
114114

115115
Use the `speakerProfileId` property to integrate personal voice in your text to speech application. For more information, see [use personal voice in your application](./personal-voice-how-to-use.md).
116116

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

119119
```HTTP 201
120-
Operation-Location: https://eastus.api.cognitive.microsoft.com/customvoice/operations/1321a2c0-9be4-471d-83bb-bc3be4f96a6f?api-version=2023-12-01-preview
120+
Operation-Location: https://eastus.api.cognitive.microsoft.com/customvoice/operations/1321a2c0-9be4-471d-83bb-bc3be4f96a6f?api-version=2024-02-01-preview
121121
Operation-Id: 1321a2c0-9be4-471d-83bb-bc3be4f96a6f
122122
```
123123

0 commit comments

Comments
 (0)