From d9311195c9268c1b9dd1b0d1645cedcbcad767f3 Mon Sep 17 00:00:00 2001 From: Chad Bailey Date: Thu, 18 Jan 2024 21:05:24 +0000 Subject: [PATCH] cleanup --- src/samples/theoretical-to-real/08-bots-arguing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/samples/theoretical-to-real/08-bots-arguing.py b/src/samples/theoretical-to-real/08-bots-arguing.py index c1ea6d63c..d05d295f4 100644 --- a/src/samples/theoretical-to-real/08-bots-arguing.py +++ b/src/samples/theoretical-to-real/08-bots-arguing.py @@ -28,7 +28,7 @@ async def main(room_url:str): tts1 = AzureTTSService() tts2 = ElevenLabsTTSService() - async def handle_transcriptions(): + async def argue(): bot1_messages = [ {"role": "system", "content": "You strongly believe that a hot dog is a sandwich. Start by stating this fact in a few sentences, then be prepared to debate this with the user. Your responses should only be a few sentences long."}, ] @@ -59,7 +59,7 @@ async def main(room_url:str): async for audio in audio_generator2: await transport.send_queue.put(QueueFrame(FrameType.AUDIO, audio)) - await asyncio.gather(transport.run(), handle_transcriptions()) + await asyncio.gather(transport.run(), argue()) if __name__ == "__main__":