mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-08 06:54:24 +00:00
fix(android): wire MP3 fallback call, prevent double-speaking
- Codex P1: streamAndPlayMp3 was computed but never called after PCM failure. Now properly invoked as fallback. - Codex P2: MicCaptureManager.speakAssistantReply now skipped when TalkModeManager.ttsOnAllResponses is active, preventing both pipelines from speaking the same assistant reply.
This commit is contained in:
committed by
Ayaan Zaidi
parent
587790e84a
commit
930841cd7c
@@ -361,7 +361,11 @@ class NodeRuntime(context: Context) {
|
||||
parseChatSendRunId(response) ?: idempotencyKey
|
||||
},
|
||||
speakAssistantReply = { text ->
|
||||
voiceReplySpeaker.speakAssistantReply(text)
|
||||
// Skip if TalkModeManager is handling TTS (ttsOnAllResponses) to avoid
|
||||
// double-speaking the same assistant reply from both pipelines.
|
||||
if (!talkMode.ttsOnAllResponses) {
|
||||
voiceReplySpeaker.speakAssistantReply(text)
|
||||
}
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user