simplify the join, no need for END_STREAM
This commit is contained in:
@@ -43,11 +43,8 @@ async def main(room_url):
|
||||
transport.output_queue.put(OutputQueueFrame(FrameType.AUDIO_FRAME, audio))
|
||||
current_text = ""
|
||||
|
||||
# Put an "end stream" item on the queue, which will cause it to shut down when it's processed
|
||||
# all the audio.
|
||||
transport.output_queue.put(OutputQueueFrame(FrameType.END_STREAM, None))
|
||||
# wait for the output queue to be empty, then leave the meeting
|
||||
transport.output_queue.join()
|
||||
|
||||
transport.stop()
|
||||
|
||||
await transport.run()
|
||||
|
||||
Reference in New Issue
Block a user