ciyidogan commited on
Commit
26bf42c
·
verified ·
1 Parent(s): 42105de

Update stt/stt_deepgram.py

Browse files
Files changed (1) hide show
  1. stt/stt_deepgram.py +3 -2
stt/stt_deepgram.py CHANGED
@@ -98,14 +98,15 @@ class DeepgramSTT(STTInterface):
98
  sample_rate=16000,
99
  interim_results=True, # Bu zorunlu, yoksa final result da gelmiyor...
100
  channels=1,
101
- utterance_end_ms=2000, # 2 second silence = end
102
  punctuate=True,
103
  smart_format=True,
104
  #numerals=True,
105
  #profanity_filter=False,
106
  #redact=False,
107
  no_delay=True,
108
- vad_events=True # Enable VAD events
 
109
  )
110
 
111
  log_info(f"🔧 Deepgram options: language=tr, model=nova-2, encoding=linear16, interim_results=True")
 
98
  sample_rate=16000,
99
  interim_results=True, # Bu zorunlu, yoksa final result da gelmiyor...
100
  channels=1,
101
+ #utterance_end_ms=2000, # 2 second silence = end
102
  punctuate=True,
103
  smart_format=True,
104
  #numerals=True,
105
  #profanity_filter=False,
106
  #redact=False,
107
  no_delay=True,
108
+ vad_events=True, # Enable VAD events
109
+ endpointing=1000
110
  )
111
 
112
  log_info(f"🔧 Deepgram options: language=tr, model=nova-2, encoding=linear16, interim_results=True")