Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
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 |
-
|
|
|
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:
|