mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 18:54:59 +00:00
style: Format voice init for readability
This commit is contained in:
parent
07337d2f41
commit
20bc718bdc
1 changed files with 3 additions and 1 deletions
|
@ -1120,7 +1120,9 @@ class Commands:
|
||||||
self.io.tool_error("To use /voice you must provide an OpenAI API key.")
|
self.io.tool_error("To use /voice you must provide an OpenAI API key.")
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
self.voice = voice.Voice(audio_format=self.voice_format or "wav", device_name=self.voice_input_device)
|
self.voice = voice.Voice(
|
||||||
|
audio_format=self.voice_format or "wav", device_name=self.voice_input_device
|
||||||
|
)
|
||||||
except voice.SoundDeviceError:
|
except voice.SoundDeviceError:
|
||||||
self.io.tool_error(
|
self.io.tool_error(
|
||||||
"Unable to import `sounddevice` and/or `soundfile`, is portaudio installed?"
|
"Unable to import `sounddevice` and/or `soundfile`, is portaudio installed?"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue