Files
LocalAI/backend/cpp/audio-cpp/audio_units.cpp
Ettore Di Giacinto 24ceb753ee backend(audio-cpp): convert sample, time and PCM units
Integer nanosecond conversion so 44.1 kHz stays exact, float seconds for the
VAD and diarization messages, and saturating s16le encode so an overshooting
sample cannot wrap to the opposite sign.

Assisted-by: Claude:claude-opus-5 [Claude Code]
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2026-07-25 23:44:45 +00:00

2.3 KiB