diff --git a/aider/commands.py b/aider/commands.py index f35eb5d49..4ced72834 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -465,7 +465,7 @@ class Commands: history = "\n".join(history) dump(history) - text = v.record_and_transcribe(history, self.voice_language) + text = v.record_and_transcribe(history, language=self.voice_language) if text: self.io.add_to_input_history(text) print() diff --git a/aider/voice.py b/aider/voice.py index 462693ab9..899bf56f7 100644 --- a/aider/voice.py +++ b/aider/voice.py @@ -54,7 +54,7 @@ class Voice: dur = time.time() - self.start_time return f"Recording, press ENTER when done... {dur:.1f}sec {bar}" - def record_and_transcribe(self, history=None): + def record_and_transcribe(self, history=None, language=None): try: return self.raw_record_and_transcribe(history) except KeyboardInterrupt: