spdl.io.parse_wav

parse_wav(data: bytes) WAVHeader[source]

Parse WAV file header and extract metadata.

Parameters:

data – Binary WAV data as bytes

Returns:

Object containing WAV header information.

Return type:

WAVHeader

Raises:

ValueError – If the WAV data is invalid or malformed.