style: Apply linter fixes

This commit is contained in:
Paul Gauthier (aider) 2024-12-30 14:17:25 -04:00
parent a7242ca846
commit 3d2de00f49
2 changed files with 7 additions and 7 deletions

View file

@ -1119,9 +1119,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="wav", device_name=self.voice_input_device
)
self.voice = voice.Voice(audio_format="wav", device_name=self.voice_input_device)
except voice.SoundDeviceError:
self.io.tool_error(
"Unable to import `sounddevice` and/or `soundfile`, is portaudio installed?"