You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cognitive-services/Speech-Service/batch-transcription-create.md
+65-66Lines changed: 65 additions & 66 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,60 +20,6 @@ With batch transcriptions, you submit the [audio data](batch-transcription-audio
20
20
21
21
## Create a transcription job
22
22
23
-
::: zone pivot="speech-cli"
24
-
25
-
To create a transcription, use the `spx batch transcription create` command. Construct the request parameters according to the following instructions:
26
-
27
-
- Set the required `content` parameter. You can specify either a semi-colon delimited list of individual files, or the URL for an entire container. For more information about Azure blob storage for batch transcription, see [Locate audio files for batch transcription](batch-transcription-audio-data.md).
28
-
- Set the required `language` property. This should match the expected locale of the audio data to transcribe. The locale can't be changed later. The Speech CLI `language` parameter corresponds to the `locale` property in the JSON request and response.
29
-
- Set the required `name` property. Choose a transcription name that you can refer to later. The transcription name doesn't have to be unique and can be changed later. The Speech CLI `name` parameter corresponds to the `displayName` property in the JSON request and response.
30
-
31
-
Here's an example Speech CLI command that creates a transcription job:
The top-level `self` property in the response body is the transcription's URI. Use this URI to get details such as the URI of the transcriptions and transcription report files. You also use this URI to update or delete a transcription.
68
-
69
-
For Speech CLI help with transcriptions, run the following command:
70
-
71
-
```azurecli-interactive
72
-
spx help batch transcription
73
-
```
74
-
75
-
::: zone-end
76
-
77
23
::: zone pivot="rest-api"
78
24
79
25
To create a transcription, use the [Transcriptions_Create](https://eastus.dev.cognitive.microsoft.com/docs/services/speech-to-text-api-v3-1/operations/Transcriptions_Create) operation of the [Speech-to-text REST API](rest-speech-to-text.md#transcriptions). Construct the request body according to the following instructions:
@@ -138,18 +84,62 @@ regularly from the service, after you retrieve the results. Alternatively, set t
138
84
139
85
::: zone-end
140
86
141
-
## Request configuration options
142
-
143
87
::: zone pivot="speech-cli"
144
88
145
-
For Speech CLI help with transcription configuration options, run the following command:
89
+
To create a transcription, use the `spx batch transcription create` command. Construct the request parameters according to the following instructions:
90
+
91
+
- Set the required `content` parameter. You can specify either a semi-colon delimited list of individual files, or the URL for an entire container. For more information about Azure blob storage for batch transcription, see [Locate audio files for batch transcription](batch-transcription-audio-data.md).
92
+
- Set the required `language` property. This should match the expected locale of the audio data to transcribe. The locale can't be changed later. The Speech CLI `language` parameter corresponds to the `locale` property in the JSON request and response.
93
+
- Set the required `name` property. Choose a transcription name that you can refer to later. The transcription name doesn't have to be unique and can be changed later. The Speech CLI `name` parameter corresponds to the `displayName` property in the JSON request and response.
94
+
95
+
Here's an example Speech CLI command that creates a transcription job:
The top-level `self` property in the response body is the transcription's URI. Use this URI to get details such as the URI of the transcriptions and transcription report files. You also use this URI to update or delete a transcription.
132
+
133
+
For Speech CLI help with transcriptions, run the following command:
134
+
135
+
```azurecli-interactive
136
+
spx help batch transcription
149
137
```
150
138
151
139
::: zone-end
152
140
141
+
## Request configuration options
142
+
153
143
::: zone pivot="rest-api"
154
144
155
145
Here are some property options that you can use to configure a transcription when you call the [Transcriptions_Create](https://eastus.dev.cognitive.microsoft.com/docs/services/speech-to-text-api-v3-1/operations/Transcriptions_Create) operation.
@@ -171,21 +161,22 @@ Here are some property options that you can use to configure a transcription whe
171
161
172
162
::: zone-end
173
163
174
-
175
-
## Using custom models
176
-
177
-
Batch transcription uses the default base model for the locale that you specify. You don't need to set any properties to use the default base model.
178
-
179
-
Optionally, you can modify the previous [create transcription example](#create-a-batch-transcription) by setting the `model` property to use a specific base model or [Custom Speech](how-to-custom-speech-train-model.md) model.
180
-
181
164
::: zone pivot="speech-cli"
182
165
166
+
For Speech CLI help with transcription configuration options, run the following command:
Batch transcription uses the default base model for the locale that you specify. You don't need to set any properties to use the default base model.
177
+
178
+
Optionally, you can modify the previous [create transcription example](#create-a-batch-transcription) by setting the `model` property to use a specific base model or [Custom Speech](how-to-custom-speech-train-model.md) model.
To use a Custom Speech model for batch transcription, you need the model's URI. You can retrieve the model location when you create or get a model. The top-level `self` property in the response body is the model's URI. For an example, see the JSON response example in the [Create a model](how-to-custom-speech-train-model.md?pivots=rest-api#create-a-model) guide. A [custom model deployment endpoint](how-to-custom-speech-deploy-model.md) isn't needed for the batch transcription service.
211
210
212
211
Batch transcription requests for expired models will fail with a 4xx error. You'll want to set the `model` property to a base model or custom model that hasn't yet expired. Otherwise don't include the `model` property to always use the latest base model. For more information, see [Choose a model](how-to-custom-speech-create-project.md#choose-your-model) and [Custom Speech model lifecycle](how-to-custom-speech-model-and-endpoint-lifecycle.md).
Copy file name to clipboardExpand all lines: articles/cognitive-services/Speech-Service/batch-transcription-get.md
+27-29Lines changed: 27 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,16 +20,14 @@ To get transcription results, first check the [status](#get-transcription-status
20
20
21
21
## Get transcription status
22
22
23
-
::: zone pivot="speech-cli"
24
-
25
-
To get the status of the transcription job, use the `spx batch transcription status` command. Construct the request parameters according to the following instructions:
23
+
::: zone pivot="rest-api"
26
24
27
-
- Set the `transcription` parameter to the ID of the transcription that you want to get.
25
+
To get the status of the transcription job, call the [Transcriptions_Get](https://eastus.dev.cognitive.microsoft.com/docs/services/speech-to-text-api-v3-1/operations/Transcriptions_Get) operation of the [Speech-to-text REST API](rest-speech-to-text.md).
28
26
29
-
Here's an example Speech CLI command to get the transcription status:
27
+
Make an HTTP GET request using the URI as shown in the following example. Replace `YourTranscriptionId` with your transcription ID, replace `YourSubscriptionKey` with your Speech resource key, and replace `YourServiceRegion` with your Speech resource region.
30
28
31
29
```azurecli-interactive
32
-
spx batch transcription status --api-version v3.1 --transcription YourTranscriptionId
30
+
curl -v -X GET "https://YourServiceRegion.api.cognitive.microsoft.com/speechtotext/v3.1/transcriptions/YourTranscriptionId" -H "Ocp-Apim-Subscription-Key: YourSubscriptionKey"
33
31
```
34
32
35
33
You should receive a response body in the following format:
@@ -65,22 +63,19 @@ You should receive a response body in the following format:
65
63
66
64
The `status` property indicates the current status of the transcriptions. The transcriptions and transcription report will be available when the transcription status is `Succeeded`.
67
65
68
-
For Speech CLI help with transcriptions, run the following command:
69
-
70
-
```azurecli-interactive
71
-
spx help batch transcription
72
-
```
73
66
74
67
::: zone-end
75
68
76
-
::: zone pivot="rest-api"
69
+
::: zone pivot="speech-cli"
77
70
78
-
To get the status of the transcription job, call the [Transcriptions_Get](https://eastus.dev.cognitive.microsoft.com/docs/services/speech-to-text-api-v3-1/operations/Transcriptions_Get) operation of the [Speech-to-text REST API](rest-speech-to-text.md).
71
+
To get the status of the transcription job, use the `spx batch transcription status` command. Construct the request parameters according to the following instructions:
79
72
80
-
Make an HTTP GET request using the URI as shown in the following example. Replace `YourTranscriptionId` with your transcription ID, replace `YourSubscriptionKey` with your Speech resource key, and replace `YourServiceRegion` with your Speech resource region.
73
+
- Set the `transcription` parameter to the ID of the transcription that you want to get.
74
+
75
+
Here's an example Speech CLI command to get the transcription status:
81
76
82
77
```azurecli-interactive
83
-
curl -v -X GET "https://YourServiceRegion.api.cognitive.microsoft.com/speechtotext/v3.1/transcriptions/YourTranscriptionId" -H "Ocp-Apim-Subscription-Key: YourSubscriptionKey"
78
+
spx batch transcription status --api-version v3.1 --transcription YourTranscriptionId
84
79
```
85
80
86
81
You should receive a response body in the following format:
@@ -116,23 +111,25 @@ You should receive a response body in the following format:
116
111
117
112
The `status` property indicates the current status of the transcriptions. The transcriptions and transcription report will be available when the transcription status is `Succeeded`.
118
113
114
+
For Speech CLI help with transcriptions, run the following command:
115
+
116
+
```azurecli-interactive
117
+
spx help batch transcription
118
+
```
119
119
120
120
::: zone-end
121
121
122
122
## Get transcription results
123
123
124
+
::: zone pivot="rest-api"
124
125
125
-
::: zone pivot="speech-cli"
126
-
127
-
The `spx batch transcription list` command returns a list of result files for a transcription. A [transcription report](#transcription-report-file) file is provided for each submitted batch transcription job. In addition, one [transcription](#transcription-result-file) file (the end result) is provided for each successfully transcribed audio file.
128
126
129
-
- Set the required `files` flag.
130
-
- Set the required `transcription` parameter to the ID of the transcription that you want to get logs.
127
+
The [Transcriptions_ListFiles](https://eastus.dev.cognitive.microsoft.com/docs/services/speech-to-text-api-v3-1/operations/Transcriptions_ListFiles) operation returns a list of result files for a transcription. A [transcription report](#transcription-report-file) file is provided for each submitted batch transcription job. In addition, one [transcription](#transcription-result-file) file (the end result) is provided for each successfully transcribed audio file.
131
128
132
-
Here's an example Speech CLI command that gets a list of result files for a transcription:
129
+
Make an HTTP GET request using the "files" URI from the previous response body. Replace `YourTranscriptionId` with your transcription ID, replace `YourSubscriptionKey` with your Speech resource key, and replace `YourServiceRegion` with your Speech resource region.
133
130
134
131
```azurecli-interactive
135
-
spx batch transcription list --api-version v3.1 --files --transcription YourTranscriptionId
132
+
curl -v -X GET "https://YourServiceRegion.api.cognitive.microsoft.com/speechtotext/v3.1/transcriptions/YourTranscriptionId/files" -H "Ocp-Apim-Subscription-Key: YourSubscriptionKey"
136
133
```
137
134
138
135
You should receive a response body in the following format:
@@ -182,19 +179,21 @@ You should receive a response body in the following format:
182
179
183
180
The location of each transcription and transcription report files with more details are returned in the response body. The `contentUrl` property contains the URL to the [transcription](#transcription-result-file) (`"kind": "Transcription"`) or [transcription report](#transcription-report-file) (`"kind": "TranscriptionReport"`) file.
184
181
185
-
By default, the results are stored in a container managed by Microsoft. When the transcription job is deleted, the transcription result data is also deleted.
182
+
If you didn't specify a container in the `destinationContainerUrl` property of the transcription request, the results are stored in a container managed by Microsoft. When the transcription job is deleted, the transcription result data is also deleted.
186
183
187
184
::: zone-end
188
185
189
-
::: zone pivot="rest-api"
186
+
::: zone pivot="speech-cli"
190
187
188
+
The `spx batch transcription list` command returns a list of result files for a transcription. A [transcription report](#transcription-report-file) file is provided for each submitted batch transcription job. In addition, one [transcription](#transcription-result-file) file (the end result) is provided for each successfully transcribed audio file.
191
189
192
-
The [Transcriptions_ListFiles](https://eastus.dev.cognitive.microsoft.com/docs/services/speech-to-text-api-v3-1/operations/Transcriptions_ListFiles) operation returns a list of result files for a transcription. A [transcription report](#transcription-report-file) file is provided for each submitted batch transcription job. In addition, one [transcription](#transcription-result-file) file (the end result) is provided for each successfully transcribed audio file.
190
+
- Set the required `files` flag.
191
+
- Set the required `transcription` parameter to the ID of the transcription that you want to get logs.
193
192
194
-
Make an HTTP GET request using the "files" URI from the previous response body. Replace `YourTranscriptionId` with your transcription ID, replace `YourSubscriptionKey` with your Speech resource key, and replace `YourServiceRegion` with your Speech resource region.
193
+
Here's an example Speech CLI command that gets a list of result files for a transcription:
195
194
196
195
```azurecli-interactive
197
-
curl -v -X GET "https://YourServiceRegion.api.cognitive.microsoft.com/speechtotext/v3.1/transcriptions/YourTranscriptionId/files" -H "Ocp-Apim-Subscription-Key: YourSubscriptionKey"
196
+
spx batch transcription list --api-version v3.1 --files --transcription YourTranscriptionId
198
197
```
199
198
200
199
You should receive a response body in the following format:
@@ -244,11 +243,10 @@ You should receive a response body in the following format:
244
243
245
244
The location of each transcription and transcription report files with more details are returned in the response body. The `contentUrl` property contains the URL to the [transcription](#transcription-result-file) (`"kind": "Transcription"`) or [transcription report](#transcription-report-file) (`"kind": "TranscriptionReport"`) file.
246
245
247
-
If you didn't specify a container in the `destinationContainerUrl` property of the transcription request, the results are stored in a container managed by Microsoft. When the transcription job is deleted, the transcription result data is also deleted.
246
+
By default, the results are stored in a container managed by Microsoft. When the transcription job is deleted, the transcription result data is also deleted.
248
247
249
248
::: zone-end
250
249
251
-
252
250
### Transcription report file
253
251
254
252
One transcription report file is provided for each submitted batch transcription job.
0 commit comments