🐛[bugfix] Model : getInputDefaultDeviceを取得するように修正

This commit is contained in:
misyaguziya
2024-05-27 02:16:24 +09:00
parent 6366dc1c82
commit 9b086e711d

View File

@@ -377,9 +377,13 @@ class Model:
def getListInputHost():
return [host for host in getInputDevices().keys()]
@staticmethod
def getInputDefaultDevice():
return getInputDevices().get(config.CHOICE_MIC_HOST, [{"name": "NoDevice"}])[0]["name"]
@staticmethod
def getListInputDevice():
return [device["name"] for device in getInputDevices()[config.CHOICE_MIC_HOST]]
return [device["name"] for device in getInputDevices().get(config.CHOICE_MIC_HOST, [{"name": "NoDevice"}])]
@staticmethod
def getListOutputDevice():