Skip to content

Commit d1c0f0f

Browse files
committed
Learn Editor: Update speech-container-batch-processing.md
1 parent 7771d87 commit d1c0f0f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

articles/cognitive-services/Speech-Service/speech-container-batch-processing.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ docker pull docker.io/batchkit/speech-batch-kit:latest
4545
The batch client takes a yaml configuration file that specifies the on-prem container endpoints. The following example can be written to `/mnt/my_nfs/config.yaml`, which is used in the examples below.
4646

4747

48+
4849
```yaml
4950
MyContainer1:
5051
concurrency: 5
@@ -68,6 +69,8 @@ The batch client can dynamically detect if an endpoint becomes unavailable (for
6869

6970

7071

72+
73+
7174
## Run the batch processing container
7275
7376
> [!NOTE]
@@ -78,22 +81,27 @@ The batch client can dynamically detect if an endpoint becomes unavailable (for
7881
Use the Docker `run` command to start the container. This will start an interactive shell inside the container.
7982

8083

84+
85+
8186
```Docker
8287
docker run --rm -ti -v /mnt/my_nfs:/my_nfs --entrypoint /bin/bash /mnt/my_nfs:/my_nfs docker.io/batchkit/speech-batch-kit:latest
8388
```
8489

8590
To run the batch client:
8691

8792

93+
8894
```Docker
8995
run-batch-client -config /my_nfs/config.yaml -input_folder /my_nfs/audio_files -output_folder /my_nfs/transcriptions -log_folder /my_nfs/logs -file_log_level DEBUG -nbest 1 -m ONESHOT -diarization None -language en-US -strict_config
9096
```
9197

9298
To run the batch client and container in a single command:
9399

94100

101+
102+
95103
```Docker
96-
docker run --rm -ti -v /mnt/my_nfs:/my_nfs docker.io/batchkit/speech-batch-kit:latest -config /my_nfs/config.yaml -input_folder /my_nfs/audio_files -output_folder /my_nfs/transcriptions -log_folder /my_nfs/logs -file_log_level DEBUG -nbest 1 -m ONESHOT -diarization None -language en-US -strict_config
104+
docker run --network host --rm -ti -v /mnt/my_nfs:/my_nfs docker.io/batchkit/speech-batch-kit:latest -config /my_nfs/config.yaml -input_folder /my_nfs/audio_files -output_folder /my_nfs/transcriptions -log_folder /my_nfs/logs -file_log_level DEBUG -nbest 1 -m ONESHOT -diarization None -language en-US -strict_config
97105
```
98106

99107

@@ -164,3 +172,4 @@ The output directory specified by `-output_folder` will contain a *run_summary.j
164172

165173
* [How to install and run containers](speech-container-howto.md)
166174

175+

0 commit comments

Comments
 (0)