fix: restore Discord voice replies

This commit is contained in:
Peter Steinberger
2026-05-01 11:04:18 +01:00
parent 9a051d2f9b
commit f9bb6e3515
13 changed files with 103 additions and 21 deletions

View File

@@ -1075,7 +1075,7 @@ Voice channel pipeline:
- Discord PCM capture is converted to a WAV temp file.
- `tools.media.audio` handles STT, for example `openai/gpt-4o-mini-transcribe`.
- The transcript is sent through normal Discord ingress and routing.
- The transcript is sent through Discord ingress and routing while the response LLM runs with a voice-output policy that hides the agent `tts` tool and asks for returned text, because Discord voice owns final TTS playback.
- `voice.model`, when set, overrides only the response LLM for this voice-channel turn.
- `voice.tts` is merged over `messages.tts`; the resulting audio is played in the joined channel.