Skip to content

Commit 2530c45

Browse files
committed
consistent sample job id
1 parent db3b5da commit 2530c45

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/ai-services/speech-service/batch-synthesis.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ You should receive a response body in the following format:
7777

7878
```json
7979
{
80-
"id": "my-job-01",
80+
"id": "YourSynthesisId",
8181
"internalId": "7ab84171-9070-4d3b-88d4-1b8cc1cb928a",
8282
"status": "NotStarted",
8383
"createdDateTime": "2024-03-12T07:23:18.0097387Z",
@@ -102,14 +102,14 @@ The `status` property should progress from `NotStarted` status, to `Running`, an
102102
To get the status of the batch synthesis job, make an HTTP GET request using the URI as shown in the following example. Replace `YourSpeechKey` with your Speech resource key, and replace `YourSpeechRegion` with your Speech resource region.
103103

104104
```azurecli-interactive
105-
curl -v -X GET "https://YourSpeechRegion.api.cognitive.microsoft.com/texttospeech/batchsyntheses/my-job-01?api-version=2024-04-01" -H "Ocp-Apim-Subscription-Key: YourSpeechKey"
105+
curl -v -X GET "https://YourSpeechRegion.api.cognitive.microsoft.com/texttospeech/batchsyntheses/YourSynthesisId?api-version=2024-04-01" -H "Ocp-Apim-Subscription-Key: YourSpeechKey"
106106
```
107107

108108
You should receive a response body in the following format:
109109

110110
```json
111111
{
112-
"id": "my-job-01",
112+
"id": "YourSynthesisId",
113113
"internalId": "7ab84171-9070-4d3b-88d4-1b8cc1cb928a",
114114
"status": "Succeeded",
115115
"createdDateTime": "2024-03-12T07:23:18.0097387Z",
@@ -135,7 +135,7 @@ You should receive a response body in the following format:
135135
}
136136
},
137137
"outputs": {
138-
"result": "https://stttssvcuse.blob.core.windows.net/batchsynthesis-output/29f2105f997c4bfea176d39d05ff201e/my-job-01/results.zip?SAS_Token"
138+
"result": "https://stttssvcuse.blob.core.windows.net/batchsynthesis-output/29f2105f997c4bfea176d39d05ff201e/YourSynthesisId/results.zip?SAS_Token"
139139
}
140140
}
141141
```
@@ -382,7 +382,7 @@ Here's an example request that results in an HTTP 400 error, because the `inputs
382382
```console
383383
curl -v -X PUT -H "Ocp-Apim-Subscription-Key: YourSpeechKey" -H "Content-Type: application/json" -d '{
384384
"inputKind": "SSML"
385-
}' "https://YourSpeechRegion.api.cognitive.microsoft.com/texttospeech/batchsyntheses/my-job-01?api-version=2024-04-01"
385+
}' "https://YourSpeechRegion.api.cognitive.microsoft.com/texttospeech/batchsyntheses/YourSynthesisId?api-version=2024-04-01"
386386
```
387387

388388
In this case, the response headers include `HTTP/1.1 400 Bad Request`.

0 commit comments

Comments
 (0)