Skip to content

Commit 593c8f2

Browse files
authored
Update disconnected-containers.md
1 parent 551a07a commit 593c8f2

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

articles/cognitive-services/containers/disconnected-containers.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,20 @@ In order to prepare and configure the Custom Speech-to-Text container you will n
196196

197197
To download all the required models into your Custom Speech-to-Text container follow the instructions for Custom Speech-to-Text containers on the [Install and run Speech containers](../speech-service/speech-container-howto.md?tabs=cstt) page and use the speech resource in step 1.
198198

199-
After all required models have been downloaded into your container, you need to download the disconnected license file using the instructions in the above chapter, titled [Configure the container to be run in a disconnected environment](./disconnected-containers.md#configure-the-container-to-be-run-in-a-disconnected-environment), using the Speech resource from step 2.
199+
After all required models have been downloaded to your host computer, you need to download the disconnected license file using the instructions in the above chapter, titled [Configure the container to be run in a disconnected environment](./disconnected-containers.md#configure-the-container-to-be-run-in-a-disconnected-environment), using the Speech resource from step 2.
200200

201-
To run the container in disconnected mode, follow the instructions from above chapter titled [Run the container in a disconnected environment](./disconnected-containers.md#run-the-container-in-a-disconnected-environment).
201+
To run the container in disconnected mode, follow the instructions from above chapter titled [Run the container in a disconnected environment](./disconnected-containers.md#run-the-container-in-a-disconnected-environment) and add an additional -v parameter to mount the directory containing your custom speech model.
202+
Example for running a Custom Speech-to-Text container in disconnected mode:
203+
```bash
204+
docker run --rm -it -p 5000:5000 --memory {MEMORY_SIZE} --cpus {NUMBER_CPUS} \
205+
-v {LICENSE_MOUNT} \
206+
-v {OUTPUT_PATH} \
207+
-v {VOLUME_MOUNT} \
208+
{IMAGE} \
209+
eula=accept \
210+
Mounts:License={CONTAINER_LICENSE_DIRECTORY}
211+
Mounts:Output={CONTAINER_OUTPUT_DIRECTORY}
212+
```
202213

203214
The [Custom Speech-to-Text](../speech-service/speech-container-howto.md?tabs=cstt) container provides a default directory for writing the license file and billing log at runtime. The default directories are /license and /output respectively.
204215

0 commit comments

Comments
 (0)