mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
refactor: Pass voice settings to Commands as params
This commit is contained in:
parent
8eaefb57d3
commit
a7242ca846
2 changed files with 4 additions and 1 deletions
|
@ -54,6 +54,7 @@ class Commands:
|
|||
io,
|
||||
coder,
|
||||
voice_language=None,
|
||||
voice_input_device=None,
|
||||
verify_ssl=True,
|
||||
args=None,
|
||||
parser=None,
|
||||
|
@ -1119,7 +1120,7 @@ class Commands:
|
|||
return
|
||||
try:
|
||||
self.voice = voice.Voice(
|
||||
audio_format=self.args.voice_format, device_name=self.args.voice_input_device
|
||||
audio_format="wav", device_name=self.voice_input_device
|
||||
)
|
||||
except voice.SoundDeviceError:
|
||||
self.io.tool_error(
|
||||
|
|
|
@ -802,6 +802,8 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
|||
commands = Commands(
|
||||
io,
|
||||
None,
|
||||
voice_language=args.voice_language,
|
||||
voice_input_device=args.voice_input_device,
|
||||
verify_ssl=args.verify_ssl,
|
||||
args=args,
|
||||
parser=parser,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue