better interruption handling by moving the processors after the transport output

This commit is contained in:
Adrian Cowham
2024-10-11 10:33:12 -07:00
parent 678e87fd31
commit 522d931950
3 changed files with 3 additions and 13 deletions

View File

@@ -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,
])

View File

@@ -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,
])