Spaces:
Building
Building
Update stt/stt_google.py
Browse files- stt/stt_google.py +3 -3
stt/stt_google.py
CHANGED
@@ -344,10 +344,10 @@ class GoogleCloudSTT(STTInterface):
|
|
344 |
log_info("✅ Created new Google Speech client")
|
345 |
|
346 |
recognition_config = speech.RecognitionConfig(
|
347 |
-
encoding=self._get_encoding(
|
348 |
-
sample_rate_hertz=
|
349 |
language_code=config.language,
|
350 |
-
enable_automatic_punctuation=
|
351 |
model="latest_long",
|
352 |
use_enhanced=True
|
353 |
)
|
|
|
344 |
log_info("✅ Created new Google Speech client")
|
345 |
|
346 |
recognition_config = speech.RecognitionConfig(
|
347 |
+
encoding=self._get_encoding("WEBM_OPUS"),
|
348 |
+
sample_rate_hertz=16000,
|
349 |
language_code=config.language,
|
350 |
+
enable_automatic_punctuation=True,
|
351 |
model="latest_long",
|
352 |
use_enhanced=True
|
353 |
)
|