From 20bc718bdc291902adc9b399dcec9c43fd52c24b Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Mon, 30 Dec 2024 14:19:21 -0400 Subject: [PATCH] style: Format voice init for readability --- aider/commands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aider/commands.py b/aider/commands.py index 3a0a2e5f5..55fa90170 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -1120,7 +1120,9 @@ 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.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: self.io.tool_error( "Unable to import `sounddevice` and/or `soundfile`, is portaudio installed?"