Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FramesToWAV ¶ added in v0.0.9
func FramesToWAV(frames []*model.AudioFrame) bytes.Buffer
FramesToWAV combines all AudioFrames into a single WAV buffer (16-bit PCM) with a valid RIFF header. The resulting buffer is ready to be sent to STT services (e.g., Azure, Google) as the request body with Content-Type: audio/wav.
Audio metadata (sample rate, channels) is taken from the first frame. If unavailable, it falls back to 16 kHz mono.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.