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/speech-container-cstt.md
+14-12Lines changed: 14 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ Obtain the **Model ID** to use as the argument to the `ModelId` parameter of the
91
91
92
92
Use the [docker run](https://docs.docker.com/engine/reference/commandline/run/) command to run the container.
93
93
94
-
# [Container run](#tab/container)
94
+
# [Custom speech to text](#tab/container)
95
95
96
96
The following table represents the various `docker run` parameters and their corresponding descriptions:
97
97
@@ -211,7 +211,7 @@ ApiKey={API_KEY}
211
211
> [!NOTE]
212
212
> If you set more than one query or download parameter, the command will prioritize in this order: `BaseModelLocale`, model ID, and then `DisplayLocale` (only applicable for display models).
213
213
214
-
# [Disconnected container run](#tab/disconnected)
214
+
# [Disconnected custom speech to text](#tab/disconnected)
215
215
216
216
To run disconnected containers (not connected to the internet), you must submit [this request form](https://aka.ms/csdisconnectedcontainers) and wait for approval. For more information about applying and purchasing a commitment plan to use containers in disconnected environments, see [Use containers in disconnected environments](../containers/disconnected-containers.md) in the Azure Cognitive Services documentation.
217
217
@@ -224,7 +224,7 @@ In order to prepare and configure the Custom Speech-to-Text container you will n
224
224
225
225
Download the docker container and run it to get the required speech model as [described above](#get-the-container-image-with-docker-pull) using the regular Azure Speech resource. Next, you will need to download your disconnected license file.
226
226
227
-
The `DownloadLicense=True` parameter in your `docker run` command will download a license file that will enable your Docker container to run when it isn't connected to the internet. It also contains an expiration date, after which the license file will be invalid to run the container. You can only use a license file with the appropriate container that you've been approved for. For example, you can't use a license file for a speech-to-text container with a form recognizer container.
227
+
The `DownloadLicense=True` parameter in your `docker run` command will download a license file that will enable your Docker container to run when it isn't connected to the internet. It also contains an expiration date, after which the license file will be invalid to run the container. You can only use a license file with the appropriate container that you've been approved for. For example, you can't use a license file for a `speech-to-text` container with a `neural-text-to-speech` container.
228
228
229
229
| Placeholder | Description |
230
230
|-------------|-------|
@@ -249,16 +249,18 @@ Once the license file has been downloaded, you can run the container in a discon
249
249
250
250
Wherever the container is run, the license file must be mounted to the container and the location of the license folder on the container's local filesystem must be specified with `Mounts:License=`. An output mount must also be specified so that billing usage records can be written.
251
251
252
-
Placeholder | Value | Format or example |
253
-
|-------------|-------|---|
254
-
|`{IMAGE}`| The container image you want to use. |`mcr.microsoft.com/azure-cognitive-services/form-recognizer/invoice`|
255
-
`{MEMORY_SIZE}` | The appropriate size of memory to allocate for your container. | `4g` |
256
-
|`{NUMBER_CPUS}`| The appropriate number of CPUs to allocate for your container. |`4`|
257
-
|`{LICENSE_MOUNT}`| The path where the license will be located and mounted. |`/host/license:/path/to/license/directory`|
252
+
| Placeholder | Description |
253
+
|-------------|-------|
254
+
|`{IMAGE}`| The container image you want to use.<br/><br/>For example: `mcr.microsoft.com/azure-cognitive-services/custom-speech-to-text:latest`|
255
+
|`{MEMORY_SIZE}`| The appropriate size of memory to allocate for your container.<br/><br/>For example: `4g`|
256
+
|`{NUMBER_CPUS}`| The appropriate number of CPUs to allocate for your container.<br/><br/>For example: `4`|
257
+
|`{LICENSE_MOUNT}`| The path where the license will be downloaded, and mounted.<br/><br/>For example: `/host/license:/path/to/license/directory`|
258
+
|`{ENDPOINT_URI}`| The endpoint for authenticating your service request. You can find it on your resource's **Key and endpoint** page, on the Azure portal.<br/><br/>For example: `https://<your-resource-name>.cognitiveservices.azure.com`|
259
+
|`{API_KEY}`| The key for your Speech resource. You can find it on your resource's **Key and endpoint** page, on the Azure portal. |
260
+
|`{CONTAINER_LICENSE_DIRECTORY}`| Location of the license folder on the container's local filesystem.<br/><br/>For example: `/path/to/license/directory`|
261
+
|`{CONTAINER_OUTPUT_DIRECTORY}`| Location of the output folder on the container's local filesystem.<br/><br/>For example: `/path/to/output/directory`|
258
262
|`{OUTPUT_PATH}`| The output path for logging.<br/><br/>For example: `/host/output:/path/to/output/directory`<br/><br/>For more information, see [usage records](../containers/disconnected-containers.md#usage-records) in the Azure Cognitive Services documentation. |
259
-
|`{MODEL_PATH}`| The path where the model is located. |`/path/to/model/`|
260
-
|`{CONTAINER_LICENSE_DIRECTORY}`| Location of the license folder on the container's local filesystem. |`/path/to/license/directory`|
261
-
|`{CONTAINER_OUTPUT_DIRECTORY}`| Location of the output folder on the container's local filesystem. |`/path/to/output/directory`|
263
+
|`{MODEL_PATH}`| The path where the model is located.<br/><br/>For example: `/path/to/model/`|
Use the [docker run](https://docs.docker.com/engine/reference/commandline/run/) command to run the container.
82
82
83
-
# [Container run](#tab/container)
84
-
85
83
The following table represents the various `docker run` parameters and their corresponding descriptions:
86
84
87
85
| Parameter | Description |
@@ -108,70 +106,6 @@ This command:
108
106
* Exposes TCP port 5003 and allocates a pseudo-TTY for the container.
109
107
* Automatically removes the container after it exits. The container image is still available on the host computer.
110
108
111
-
112
-
# [Disconnected container run](#tab/disconnected)
113
-
114
-
To run disconnected containers (not connected to the internet), you must submit [this request form](https://aka.ms/csdisconnectedcontainers) and wait for approval. For more information about applying and purchasing a commitment plan to use containers in disconnected environments, see [Use containers in disconnected environments](../containers/disconnected-containers.md) in the Azure Cognitive Services documentation.
115
-
116
-
If you have been approved to run the container disconnected from the internet, the following example shows the formatting of the `docker run` command to use, with placeholder values. Replace these placeholder values with your own values.
117
-
118
-
The `DownloadLicense=True` parameter in your `docker run` command will download a license file that will enable your Docker container to run when it isn't connected to the internet. It also contains an expiration date, after which the license file will be invalid to run the container. You can only use a license file with the appropriate container that you've been approved for. For example, you can't use a license file for a `speech-to-text` container with a `neural-text-to-speech` container.
119
-
120
-
| Placeholder | Description |
121
-
|-------------|-------|
122
-
|`{IMAGE}`| The container image you want to use.<br/><br/>For example: `mcr.microsoft.com/azure-cognitive-services/speech-to-text`|
123
-
|`{LICENSE_MOUNT}`| The path where the license will be downloaded, and mounted.<br/><br/>For example: `/host/license:/path/to/license/directory`|
124
-
|`{ENDPOINT_URI}`| The endpoint for authenticating your service request. You can find it on your resource's **Key and endpoint** page, on the Azure portal.<br/><br/>For example: `https://<your-resource-name>.cognitiveservices.azure.com`|
125
-
|`{API_KEY}`| The key for your Speech resource. You can find it on your resource's **Key and endpoint** page, on the Azure portal. |
126
-
|`{CONTAINER_LICENSE_DIRECTORY}`| Location of the license folder on the container's local filesystem.<br/><br/>For example: `/path/to/license/directory`|
127
-
128
-
```bash
129
-
docker run --rm -it -p 5000:5000 \
130
-
-v {LICENSE_MOUNT} \
131
-
{IMAGE} \
132
-
eula=accept \
133
-
billing={ENDPOINT_URI} \
134
-
apikey={API_KEY} \
135
-
DownloadLicense=True \
136
-
Mounts:License={CONTAINER_LICENSE_DIRECTORY}
137
-
```
138
-
139
-
Once the license file has been downloaded, you can run the container in a disconnected environment. The following example shows the formatting of the `docker run` command you'll use, with placeholder values. Replace these placeholder values with your own values.
140
-
141
-
Wherever the container is run, the license file must be mounted to the container and the location of the license folder on the container's local filesystem must be specified with `Mounts:License=`. An output mount must also be specified so that billing usage records can be written.
142
-
143
-
Placeholder | Value | Format or example |
144
-
|-------------|-------|---|
145
-
|`{IMAGE}`| The container image you want to use.<br/><br/>For example: `mcr.microsoft.com/azure-cognitive-services/speech-to-text`|
146
-
`{MEMORY_SIZE}` | The appropriate size of memory to allocate for your container.<br/><br/>For example: `4g` |
147
-
|`{NUMBER_CPUS}`| The appropriate number of CPUs to allocate for your container.<br/><br/>For example: `4`|
148
-
|`{LICENSE_MOUNT}`| The path where the license will be located and mounted.<br/><br/>For example: `/host/license:/path/to/license/directory`|
149
-
|`{OUTPUT_PATH}`| The output path for logging.<br/><br/>For example: `/host/output:/path/to/output/directory`<br/><br/>For more information, see [usage records](../containers/disconnected-containers.md#usage-records) in the Azure Cognitive Services documentation. |
150
-
|`{CONTAINER_LICENSE_DIRECTORY}`| Location of the license folder on the container's local filesystem.<br/><br/>For example: `/path/to/license/directory`|
151
-
|`{CONTAINER_OUTPUT_DIRECTORY}`| Location of the output folder on the container's local filesystem.<br/><br/>For example: `/path/to/output/directory`|
Speech containers provide a default directory for writing the license file and billing log at runtime. The default directories are /license and /output respectively.
164
-
165
-
When you're mounting these directories to the container with the `docker run -v` command, make sure the local machine directory is set ownership to `user:group nonroot:nonroot` before running the container.
166
-
167
-
Below is a sample command to set file/directory ownership.
For more information about `docker run` with Speech containers, see [Install and run Speech containers with Docker](speech-container-howto.md#run-the-container).
Use the [docker run](https://docs.docker.com/engine/reference/commandline/run/) command to run the container.
81
81
82
-
# [Container run](#tab/container)
82
+
# [Neural text to speech](#tab/container)
83
83
84
84
The following table represents the various `docker run` parameters and their corresponding descriptions:
85
85
@@ -107,7 +107,7 @@ This command:
107
107
* Exposes TCP port 5000 and allocates a pseudo-TTY for the container.
108
108
* Automatically removes the container after it exits. The container image is still available on the host computer.
109
109
110
-
# [Disconnected container run](#tab/disconnected)
110
+
# [Disconnected neural text to speech](#tab/disconnected)
111
111
112
112
To run disconnected containers (not connected to the internet), you must submit [this request form](https://aka.ms/csdisconnectedcontainers) and wait for approval. For more information about applying and purchasing a commitment plan to use containers in disconnected environments, see [Use containers in disconnected environments](../containers/disconnected-containers.md) in the Azure Cognitive Services documentation.
113
113
@@ -117,7 +117,7 @@ The `DownloadLicense=True` parameter in your `docker run` command will download
117
117
118
118
| Placeholder | Description |
119
119
|-------------|-------|
120
-
|`{IMAGE}`| The container image you want to use.<br/><br/>For example: `mcr.microsoft.com/azure-cognitive-services/speech-to-text`|
120
+
|`{IMAGE}`| The container image you want to use.<br/><br/>For example: `mcr.microsoft.com/azure-cognitive-services/neural-text-to-speech:latest`|
121
121
|`{LICENSE_MOUNT}`| The path where the license will be downloaded, and mounted.<br/><br/>For example: `/host/license:/path/to/license/directory`|
122
122
|`{ENDPOINT_URI}`| The endpoint for authenticating your service request. You can find it on your resource's **Key and endpoint** page, on the Azure portal.<br/><br/>For example: `https://<your-resource-name>.cognitiveservices.azure.com`|
123
123
|`{API_KEY}`| The key for your Speech resource. You can find it on your resource's **Key and endpoint** page, on the Azure portal. |
@@ -140,7 +140,7 @@ Wherever the container is run, the license file must be mounted to the container
140
140
141
141
Placeholder | Value | Format or example |
142
142
|-------------|-------|---|
143
-
|`{IMAGE}`| The container image you want to use.<br/><br/>For example: `mcr.microsoft.com/azure-cognitive-services/speech-to-text`|
143
+
|`{IMAGE}`| The container image you want to use.<br/><br/>For example: `mcr.microsoft.com/azure-cognitive-services/neural-text-to-speech:latest`|
144
144
`{MEMORY_SIZE}` | The appropriate size of memory to allocate for your container.<br/><br/>For example: `4g` |
145
145
|`{NUMBER_CPUS}`| The appropriate number of CPUs to allocate for your container.<br/><br/>For example: `4`|
146
146
|`{LICENSE_MOUNT}`| The path where the license will be located and mounted.<br/><br/>For example: `/host/license:/path/to/license/directory`|
Use the [docker run](https://docs.docker.com/engine/reference/commandline/run/) command to run the container.
78
78
79
-
# [Container run](#tab/container)
79
+
# [Speech to text](#tab/container)
80
80
81
81
The following table represents the various `docker run` parameters and their corresponding descriptions:
82
82
@@ -103,7 +103,7 @@ This command:
103
103
* Exposes TCP port 5000 and allocates a pseudo-TTY for the container.
104
104
* Automatically removes the container after it exits. The container image is still available on the host computer.
105
105
106
-
# [Disconnected container run](#tab/disconnected)
106
+
# [Disconnected speech to text](#tab/disconnected)
107
107
108
108
To run disconnected containers (not connected to the internet), you must submit [this request form](https://aka.ms/csdisconnectedcontainers) and wait for approval. For more information about applying and purchasing a commitment plan to use containers in disconnected environments, see [Use containers in disconnected environments](../containers/disconnected-containers.md) in the Azure Cognitive Services documentation.
109
109
@@ -113,7 +113,7 @@ The `DownloadLicense=True` parameter in your `docker run` command will download
113
113
114
114
| Placeholder | Description |
115
115
|-------------|-------|
116
-
|`{IMAGE}`| The container image you want to use.<br/><br/>For example: `mcr.microsoft.com/azure-cognitive-services/speech-to-text`|
116
+
|`{IMAGE}`| The container image you want to use.<br/><br/>For example: `mcr.microsoft.com/azure-cognitive-services/speech-to-text:latest`|
117
117
|`{LICENSE_MOUNT}`| The path where the license will be downloaded, and mounted.<br/><br/>For example: `/host/license:/path/to/license/directory`|
118
118
|`{ENDPOINT_URI}`| The endpoint for authenticating your service request. You can find it on your resource's **Key and endpoint** page, on the Azure portal.<br/><br/>For example: `https://<your-resource-name>.cognitiveservices.azure.com`|
119
119
|`{API_KEY}`| The key for your Speech resource. You can find it on your resource's **Key and endpoint** page, on the Azure portal. |
@@ -136,7 +136,7 @@ Wherever the container is run, the license file must be mounted to the container
136
136
137
137
Placeholder | Value | Format or example |
138
138
|-------------|-------|---|
139
-
|`{IMAGE}`| The container image you want to use.<br/><br/>For example: `mcr.microsoft.com/azure-cognitive-services/speech-to-text`|
139
+
|`{IMAGE}`| The container image you want to use.<br/><br/>For example: `mcr.microsoft.com/azure-cognitive-services/speech-to-text:latest`|
140
140
`{MEMORY_SIZE}` | The appropriate size of memory to allocate for your container.<br/><br/>For example: `4g` |
141
141
|`{NUMBER_CPUS}`| The appropriate number of CPUs to allocate for your container.<br/><br/>For example: `4`|
142
142
|`{LICENSE_MOUNT}`| The path where the license will be located and mounted.<br/><br/>For example: `/host/license:/path/to/license/directory`|
0 commit comments