Skip to content

Commit 325a4df

Browse files
Update batch-synthesis-avatar.md
1 parent f5226df commit 325a4df

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

articles/ai-services/speech-service/text-to-speech-avatar/batch-synthesis-avatar.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ To perform batch synthesis, you can use the following REST API operations.
2727

2828
| Operation | Method | REST API call |
2929
|----------------------|---------|---------------------------------------------------|
30-
| [Create batch synthesis](#create-a-batch-synthesis-request) | PUT | avatar/batchsyntheses/{SynthesisId}?api-version=2024-04-01-preview |
31-
| [Get batch synthesis](#get-batch-synthesis) | GET | avatar/batchsyntheses/{SynthesisId}?api-version=2024-04-01-preview |
32-
| [List batch synthesis](#list-batch-synthesis) | GET | avatar/batchsyntheses/?api-version=2024-04-01-preview |
33-
| [Delete batch synthesis](#delete-batch-synthesis) | DELETE | avatar/batchsyntheses/{SynthesisId}?api-version=2024-04-01-preview |
30+
| [Create batch synthesis](#create-a-batch-synthesis-request) | PUT | avatar/batchsyntheses/{SynthesisId}?api-version=2024-04-15-preview |
31+
| [Get batch synthesis](#get-batch-synthesis) | GET | avatar/batchsyntheses/{SynthesisId}?api-version=2024-04-15-preview |
32+
| [List batch synthesis](#list-batch-synthesis) | GET | avatar/batchsyntheses/?api-version=2024-04-15-preview |
33+
| [Delete batch synthesis](#delete-batch-synthesis) | DELETE | avatar/batchsyntheses/{SynthesisId}?api-version=2024-04-15-preview |
3434

3535
You can refer to the code samples on [GitHub](https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/samples/batch-avatar).
3636

@@ -67,7 +67,7 @@ curl -v -X PUT -H "Ocp-Apim-Subscription-Key: YourSpeechKey" -H "Content-Type: a
6767
"talkingAvatarCharacter": "lisa",
6868
"talkingAvatarStyle": "graceful-sitting"
6969
}
70-
}' "https://YourSpeechRegion.api.cognitive.microsoft.com/avatar/batchsyntheses/my-job-01?api-version=2024-04-01-preview"
70+
}' "https://YourSpeechRegion.api.cognitive.microsoft.com/avatar/batchsyntheses/my-job-01?api-version=2024-04-15-preview"
7171
```
7272

7373
You should receive a response body in the following format:
@@ -106,7 +106,7 @@ To retrieve the status of a batch synthesis job, make an HTTP GET request using
106106
Replace `YourSynthesisId` with your batch synthesis ID, `YourSpeechKey` with your Speech resource key, and `YourSpeechRegion` with your Speech resource region.
107107

108108
```azurecli-interactive
109-
curl -v -X GET "https://YourSpeechRegion.api.cognitive.microsoft.com/avatar/batchsyntheses/YourSynthesisId?api-version=2024-04-01-preview" -H "Ocp-Apim-Subscription-Key: YourSpeechKey"
109+
curl -v -X GET "https://YourSpeechRegion.api.cognitive.microsoft.com/avatar/batchsyntheses/YourSynthesisId?api-version=2024-04-15-preview" -H "Ocp-Apim-Subscription-Key: YourSpeechKey"
110110
```
111111

112112
You should receive a response body in the following format:
@@ -157,7 +157,7 @@ To list all batch synthesis jobs for your Speech resource, make an HTTP GET requ
157157
Replace `YourSpeechKey` with your Speech resource key and `YourSpeechRegion` with your Speech resource region. Optionally, you can set the `skip` and `top` (page size) query parameters in the URL. The default value for `skip` is 0, and the default value for `maxpagesize` is 100.
158158

159159
```azurecli-interactive
160-
curl -v -X GET "https://YourSpeechRegion.api.cognitive.microsoft.com/avatar/batchsyntheses?skip=0&maxpagesize=2&api-version=2024-04-01-preview" -H "Ocp-Apim-Subscription-Key: YourSpeechKey"
160+
curl -v -X GET "https://YourSpeechRegion.api.cognitive.microsoft.com/avatar/batchsyntheses?skip=0&maxpagesize=2&api-version=2024-04-15-preview" -H "Ocp-Apim-Subscription-Key: YourSpeechKey"
161161
```
162162

163163
You receive a response body in the following format:
@@ -232,7 +232,7 @@ You receive a response body in the following format:
232232
}
233233
}
234234
],
235-
"nextLink": "https://YourSpeechRegion.api.cognitive.microsoft.com/avatar/batchsyntheses/?api-version=2024-04-01-preview&skip=2&maxpagesize=2"
235+
"nextLink": "https://YourSpeechRegion.api.cognitive.microsoft.com/avatar/batchsyntheses/?api-version=2024-04-15-preview&skip=2&maxpagesize=2"
236236
}
237237
```
238238

@@ -267,8 +267,7 @@ The summary file contains the synthesis results for each text input. Here's an e
267267
"texts": [
268268
"<speak version='1.0' xml:lang='en-US'><voice name='en-US-JennyNeural'>The rainbow has seven colors.</voice></speak>"
269269
],
270-
"status": "Succeeded"
271-
},
270+
"status": "Succeeded",
272271
"videoFileName": "244a87c294b94ddeb3dbaccee8ffa7eb/5a25b929-1358-4e81-a036-33000e788c46/0001.mp4",
273272
"TalkingAvatarCharacter": "lisa",
274273
"TalkingAvatarStyle": "graceful-sitting"
@@ -284,7 +283,7 @@ After you have retrieved the audio output results and no longer need the batch s
284283
To delete a batch synthesis job, make an HTTP DELETE request using the following URI format. Replace `YourSynthesisId` with your batch synthesis ID, `YourSpeechKey` with your Speech resource key, and `YourSpeechRegion` with your Speech resource region.
285284

286285
```azurecli-interactive
287-
curl -v -X DELETE "https://YourSpeechRegion.api.cognitive.microsoft.com/avatar/batchsyntheses/YourSynthesisId?api-version=2024-04-01-preview" -H "Ocp-Apim-Subscription-Key: YourSpeechKey"
286+
curl -v -X DELETE "https://YourSpeechRegion.api.cognitive.microsoft.com/avatar/batchsyntheses/YourSynthesisId?api-version=2024-04-15-preview" -H "Ocp-Apim-Subscription-Key: YourSpeechKey"
288287
```
289288

290289
The response headers include `HTTP/1.1 204 No Content` if the delete request was successful.

0 commit comments

Comments
 (0)