Spaces:
Building
Building
Update stt/stt_google.py
Browse files- stt/stt_google.py +1 -0
stt/stt_google.py
CHANGED
@@ -48,6 +48,7 @@ class GoogleCloudSTT(STTInterface):
|
|
48 |
self.single_utterance = False # Default value
|
49 |
self.chunk_count = 0 # Audio chunk counter
|
50 |
self.total_bytes = 0 # Total bytes received
|
|
|
51 |
|
52 |
# Set Google credentials
|
53 |
if credentials_path:
|
|
|
48 |
self.single_utterance = False # Default value
|
49 |
self.chunk_count = 0 # Audio chunk counter
|
50 |
self.total_bytes = 0 # Total bytes received
|
51 |
+
self.stop_event = threading.Event() # ✅ Stop event for thread coordination
|
52 |
|
53 |
# Set Google credentials
|
54 |
if credentials_path:
|