pyaudio -> sounddevice

This commit is contained in:
misyaguziya
2023-06-13 06:25:41 +09:00
parent 6e31404e2c
commit 073603ed91
3 changed files with 33 additions and 21 deletions

View File

@@ -259,7 +259,8 @@ class App(customtkinter.CTk):
## set transcription instance
self.vr = transcription.VoiceRecognizer()
self.CHOICE_MIC_DEVICE = self.CHOICE_MIC_DEVICE if self.CHOICE_MIC_DEVICE is not None else list(self.vr.input_device_dict.keys())[0]
self.CHOICE_MIC_DEVICE = self.CHOICE_MIC_DEVICE if self.CHOICE_MIC_DEVICE is not None else self.vr.search_default_device_index()[0]["name"]
self.CHOICE_SPEAKER_DEVICE = self.CHOICE_SPEAKER_DEVICE if self.CHOICE_SPEAKER_DEVICE is not None else self.vr.search_default_device_index()[1]["name"]
## set checkbox enable translation
if self.ENABLE_TRANSLATION: