freddyaboulton HF Staff commited on
Commit
d17661f
·
verified ·
1 Parent(s): 6d10a72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -104,7 +104,8 @@ class GeminiHandler(AsyncAudioVideoStreamHandler):
104
  await self.session.send(input=audio_message)
105
 
106
  async def emit(self):
107
- return await self.audio_queue.get()
 
108
 
109
  async def shutdown(self) -> None:
110
  if self.session:
 
104
  await self.session.send(input=audio_message)
105
 
106
  async def emit(self):
107
+ array = await self.audio_queue.get()
108
+ return (self.output_sample_rate, array)
109
 
110
  async def shutdown(self) -> None:
111
  if self.session: