simulstream.client.wav_reader_client.read_wav_file
- simulstream.client.wav_reader_client.read_wav_file(filename: str) Tuple[int, ndarray]
Read a WAV file and return its sample rate and audio data.
- Parameters:
filename (str) – Path to the WAV file.
- Returns:
Sample rate and mono audio data as int16 array.
- Return type:
- Raises:
ValueError – If the sample width is unsupported.
AssertionError – If the file contains more than one channel.