simulstream.client.wav_reader_client.cli_main

simulstream.client.wav_reader_client.cli_main()

Simulstream WebSocket client command-line interface (CLI) entry point.

This script implements a simple WebSocket client that streams audio data from a list of WAV files to a server for processing (e.g., speech recognition or translation). It reads WAV files, converts them into fixed-size chunks, and sends them asynchronously over a WebSocket connection.

Example usage:

$ python wav_reader_client.py --uri ws://localhost:8000/ --wav-list-file wav_files.txt \
      --tgt-lang it --src-lang en

Command-line arguments:

  • --uri: WebSocket server URI (e.g., ws://localhost:8000/).

  • --wav-list-file: Path to a text file containing one WAV file path per line.

  • --chunk-duration-ms: Duration of each audio chunk sent to the server (ms). Default: 100.

  • --tgt-lang: Optional target language.

  • --src-lang: Optional source language.