mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 06:44:59 +00:00
show loudness bar
This commit is contained in:
parent
4dc704272e
commit
053751cb43
2 changed files with 47 additions and 24 deletions
|
@ -436,11 +436,13 @@ class Commands:
|
|||
|
||||
def cmd_voice(self, args):
|
||||
"Record and transcribe voice input"
|
||||
if not voice.is_audio_available():
|
||||
v = voice.Voice()
|
||||
|
||||
if not v.is_audio_available():
|
||||
self.io.tool_error("Unable to import `sounddevice`, is portaudio installed?")
|
||||
return
|
||||
|
||||
text = voice.record_and_transcribe()
|
||||
text = v.record_and_transcribe()
|
||||
self.io.add_to_file_history(text)
|
||||
print()
|
||||
self.io.user_input(text, log_only=False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue