Files
hermes-agent/tests/tools
PRATHAMESH75 cc7d654bfd fix(tts): fall back to mp3 when an OpenAI-compatible backend rejects response_format (#73470)
Self-hosted OpenAI-compatible speech servers (Speaches/Kokoro, …) that
implement only mp3/wav/flac/pcm reject response_format="opus" with a
400/422 before any bytes exist, so the post-synthesis _repair_ogg_container
hook never runs and every .ogg voice reply fails. Retry once as mp3 (opus
only) and let the existing repair step rebuild the Ogg/Opus container.

Re-implemented onto tools/tts_tool_openai after upstream extracted the
OpenAI path out of tools/tts_tool.
2026-11-11 22:31:15 -08:00
..