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:

tuple[int, np.ndarray]

Raises: