Spaces:
Building
Building
Update stt_google.py
Browse files- stt_google.py +7 -7
stt_google.py
CHANGED
@@ -213,13 +213,13 @@ class GoogleCloudSTT(STTInterface):
|
|
213 |
finally:
|
214 |
log_info("🎤 Google STT stream thread ended")
|
215 |
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
|
224 |
async def stream_audio(self, audio_chunk: bytes) -> AsyncIterator[TranscriptionResult]:
|
225 |
"""Stream audio chunk and get transcription results"""
|
|
|
213 |
finally:
|
214 |
log_info("🎤 Google STT stream thread ended")
|
215 |
|
216 |
+
def _put_result(self, result: TranscriptionResult):
|
217 |
+
"""Helper to put result in queue"""
|
218 |
+
try:
|
219 |
+
self.responses_queue.put(result)
|
220 |
+
# Debug log'u kaldırdık
|
221 |
+
except Exception as e:
|
222 |
+
log_error(f"❌ Error queuing result: {e}")
|
223 |
|
224 |
async def stream_audio(self, audio_chunk: bytes) -> AsyncIterator[TranscriptionResult]:
|
225 |
"""Stream audio chunk and get transcription results"""
|