Fix TTS queue

This commit is contained in:
dwrz
2026-06-19 17:48:13 +00:00
parent f5e72b1c7a
commit e480538ec2

View File

@@ -1548,6 +1548,15 @@ class Odidere {
results: [],
expected: message.tool_calls.length,
};
// Enqueue TTS for content even when tool calls are present,
// so the LLM's spoken text before tool execution is played.
if (message.content) {
this.#enqueueTTS(
message.content,
event.voice || this.$voice.value || '',
message.id,
);
}
continue;
}