mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-06 20:54:59 +00:00
feat: ability to select audio input device
This commit is contained in:
parent
e4a1d6fe89
commit
e11faadf39
6 changed files with 317 additions and 281 deletions
|
@ -1085,7 +1085,7 @@ class Commands:
|
|||
self.io.tool_error("To use /voice you must provide an OpenAI API key.")
|
||||
return
|
||||
try:
|
||||
self.voice = voice.Voice(audio_format=self.args.voice_format)
|
||||
self.voice = voice.Voice(audio_format=self.args.voice_format, device_name=self.args.voice_input_device)
|
||||
except voice.SoundDeviceError:
|
||||
self.io.tool_error(
|
||||
"Unable to import `sounddevice` and/or `soundfile`, is portaudio installed?"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue