File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -691,9 +691,8 @@ def replace_dictation(matchobj):
691691 orig_text = matchobj .group (1 )
692692 dictation_span = dictation_spans .pop (0 )
693693 dictation_audio = audio_data [dictation_span ['offset_start' ] : dictation_span ['offset_end' ]]
694- kwargs = dict (language_code = self .cloud_dictation_lang )
695694 with debug_timer (self ._log .debug , 'alternative_dictation call' ):
696- alternative_text = alternative_text_func (dictation_audio , ** kwargs )
695+ alternative_text = alternative_text_func (dictation_audio )
697696 self ._log .debug ("alternative_dictation: %.2fs audio -> %r" , (0.5 * len (dictation_audio ) / 16000 ), alternative_text ) # FIXME: hardcoded sample_rate!
698697 # alternative_dictation.write_wav('test.wav', dictation_audio)
699698 return (alternative_text or orig_text )
You can’t perform that action at this time.
0 commit comments