Skip to main content

Module wav

Module wav 

Source
Expand description

WAV files, for the narrow case the tests need: 8 kHz 16-bit mono PCM.

Deliberately not a general WAV library. It reads what it writes and what a call records, and it refuses anything else by name rather than by producing noise — a WAV reader that silently misinterprets a format produces audio that is almost right, which is far harder to diagnose than a refusal.

Structs§

Wav
16-bit mono PCM at a given sample rate.

Enums§

WavError
What can go wrong with a WAV file.

Functions§

read_wav
Read a WAV file.
write_wav
Write a WAV file.