Fix TTS queue
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user