mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-23 21:45:00 +03:00
bugfix:server device list exception handling
This commit is contained in:
parent
b6996a15fe
commit
b9c1ee4346
@ -20,6 +20,7 @@ def list_audio_device():
|
||||
except Exception as e:
|
||||
print("[Voice Changer] ex:query_devices")
|
||||
print(e)
|
||||
return [], []
|
||||
|
||||
inputAudioDeviceList = [d for d in audioDeviceList if d["max_input_channels"] > 0]
|
||||
outputAudioDeviceList = [d for d in audioDeviceList if d["max_output_channels"] > 0]
|
||||
|
Loading…
Reference in New Issue
Block a user