better interruption handling by moving the processors after the transport output
This commit is contained in:
@@ -119,9 +119,9 @@ async def main():
|
||||
user_response,
|
||||
llm,
|
||||
tts,
|
||||
transport.output(),
|
||||
audio_buffer_processor, # captures audio into a buffer
|
||||
canonical, # uploads audio buffer to Canonical AI for metrics
|
||||
transport.output(),
|
||||
assistant_response,
|
||||
])
|
||||
|
||||
|
||||
@@ -103,8 +103,8 @@ async def main():
|
||||
user_response,
|
||||
llm,
|
||||
tts,
|
||||
audiobuffer, # used to buffer the audio in the pipeline
|
||||
transport.output(),
|
||||
audiobuffer, # used to buffer the audio in the pipeline
|
||||
assistant_response,
|
||||
])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user