pub fn pcm_to_wav(
pcm_data: &[u8],
sample_rate: Option<u32>,
channels: Option<u16>,
bits_per_sample: Option<u16>,
) -> Vec<u8> ⓘExpand description
Convert PCM audio data to WAV format
This function takes raw PCM audio data and wraps it with a proper WAV header to make it playable by standard media players.
Default parameters are based on Gemini’s audio format:
- 24kHz sample rate
- 16-bit depth
- Mono channel