mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-01-21 03:55:01 +00:00
Update media.py
This commit is contained in:
parent
ec7af0bb66
commit
27b4964cb9
@ -141,10 +141,10 @@ class RTCom:
|
|||||||
|
|
||||||
if snd_input_device is None:
|
if snd_input_device is None:
|
||||||
devices = sd.query_devices()
|
devices = sd.query_devices()
|
||||||
snd_input_device = [device['name'] for device in devices if device['type'] == 'input'][0]
|
snd_input_device = [device['name'] for device in devices if device["max_input_channels"]>0][0]
|
||||||
if snd_output_device is None:
|
if snd_output_device is None:
|
||||||
devices = sd.query_devices()
|
devices = sd.query_devices()
|
||||||
snd_output_device = [device['name'] for device in devices if device['type'] == 'output'][0]
|
snd_output_device = [device['name'] for device in devices if device["max_output_channels"]>0][0]
|
||||||
|
|
||||||
self.snd_input_device = snd_input_device
|
self.snd_input_device = snd_input_device
|
||||||
self.snd_output_device = snd_output_device
|
self.snd_output_device = snd_output_device
|
||||||
|
Loading…
Reference in New Issue
Block a user