-
assigned issue to
search: Wave format option
Issue #330
resolved
When downloading audio search results, we currently just have a choice of MTS or PCM.
Since PCM is not playable as is, having a Wave format (audio.wav) option would be handy for users. This is just a matter of prepending the Wave header to the PCM data.
type WaveHeader struct {
ChunkID [4]byte // "RIFF".
ChunkSize uint32 // Size of the entire file, minus eight bytes.
Format [4]byte // "WAVE".
Subchunk1ID [4]byte // "fmt ".
Subchunk1Size uint32
AudioFormat uint16 // 1 for PCM audio.
NumChannels uint16 // 1 for mono audio, 2 for stereo audio.
SampleRate uint32 // The sample rate in Hz.
ByteRate uint32 // The byte rate in bytes per second.
BlockAlign uint16 // The number of bytes in one block of audio data.
BitsPerSample uint16 // The number of bits per sample of audio data.
Subchunk2ID [4]byte // "data"
Subchunk2Size uint32
}
Comments (2)
-
-
- changed status to resolved
Addressed in PR #352
- Log in to comment