tts throttling and send user_interruption event (#1019)

* tts throttling and send user_interruption event

* tts streaming: if we get a flush with tokens pending, send the flush after the tokens

* wip
This commit is contained in:
Dave Horton
2025-01-04 16:34:01 -05:00
committed by GitHub
parent 3706aa4d98
commit a2581eaeb4
3 changed files with 26 additions and 8 deletions

View File

@@ -98,7 +98,7 @@ class TaskLlmVoiceAgent_S2S extends Task {
async _api(ep, args) {
const res = await ep.api('uuid_voice_agent_s2s', `^^|${args.join('|')}`);
if (!res.body?.startsWith('+OK')) {
throw new Error({args}, `Error calling uuid_voice_agent_s2s: ${JSON.stringify(res.body)}`);
throw new Error(`Error calling uuid_voice_agent_s2s: ${JSON.stringify(res.body)}`);
}
}