Spaces:
Building
Building
Update stt/stt_google.py
Browse files- stt/stt_google.py +1 -3
stt/stt_google.py
CHANGED
@@ -92,7 +92,7 @@ class GoogleSTT(STTInterface):
|
|
92 |
recognition_config = RecognitionConfig(
|
93 |
encoding=RecognitionConfig.AudioEncoding.LINEAR16,
|
94 |
sample_rate_hertz=16000,
|
95 |
-
language_code=
|
96 |
# ✅ Single utterance için ideal ayarlar
|
97 |
enable_automatic_punctuation=True,
|
98 |
# Model selection - latest_long for better accuracy
|
@@ -112,8 +112,6 @@ class GoogleSTT(STTInterface):
|
|
112 |
max_alternatives=1,
|
113 |
# Profanity filter disabled for accuracy
|
114 |
profanity_filter=False,
|
115 |
-
# Enable speaker diarization if needed
|
116 |
-
enable_speaker_diarization=False,
|
117 |
# Word level confidence
|
118 |
enable_word_confidence=False,
|
119 |
enable_spoken_punctuation=False,
|
|
|
92 |
recognition_config = RecognitionConfig(
|
93 |
encoding=RecognitionConfig.AudioEncoding.LINEAR16,
|
94 |
sample_rate_hertz=16000,
|
95 |
+
language_code="tr-TR",
|
96 |
# ✅ Single utterance için ideal ayarlar
|
97 |
enable_automatic_punctuation=True,
|
98 |
# Model selection - latest_long for better accuracy
|
|
|
112 |
max_alternatives=1,
|
113 |
# Profanity filter disabled for accuracy
|
114 |
profanity_filter=False,
|
|
|
|
|
115 |
# Word level confidence
|
116 |
enable_word_confidence=False,
|
117 |
enable_spoken_punctuation=False,
|