ciyidogan commited on
Commit
b62eccd
·
verified ·
1 Parent(s): dbac23e

Update stt/stt_google.py

Browse files
Files changed (1) hide show
  1. 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(config.encoding),
348
- sample_rate_hertz=config.sample_rate,
349
  language_code=config.language,
350
- enable_automatic_punctuation=config.enable_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
  )