Add native Qwen3 TTS streaming for Hermes

This commit is contained in:
Mikei386 committed 2026-09-05 16:06:27 +02:00
1 parent 5f3d064bb4
commit 61aa20cb52
7 files changed
+382 -4

No files matched your search

@@ -0,0 +1,23 @@
# Hermes Qwen3-TTS PCM streaming adapter
This optional Hermes backend plugin uses Athena's native
`/v1/audio/speech/pcm-stream` route. It starts playback while Qwen3-TTS is
still synthesizing the current sentence instead of waiting for a complete
audio file.
Install this directory as `${HERMES_HOME}/plugins/qwen3-stream`, enable the
plugin and set:
```yaml
tts:
provider: qwen3-stream
streaming:
provider: qwen3-stream
```
The adapter reuses `tts.openai.base_url`, `tts.openai.api_key`, model, voice
and language unless an explicit `tts.qwen3-stream` section overrides them.
This avoids copying the Athena credential into another file.
Rollback is immediate: restore `tts.provider` and `tts.streaming.provider` to
`openai`, disable the plugin and restart the Hermes gateway.