xszyou / Fay

Fay is an open-source digital human framework integrating language models and digital characters. It offers retail, assistant, and agent versions for diverse applications like virtual shopping guides, broadcasters, assistants, waiters, teachers, and voice or text-based mobile assistants.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ValueError: Invalid audio channels 我已经插入麦克风了,为什么还报错呀

Test-Jim opened this issue · comments

[11:10:58][系统] 使用 'help' 获取帮助.
File "C:\Program Files\Python310\lib\threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "D:\Fay-main\Fay-main\core\recorder.py", line 98, in __record
stream = self.get_stream() #把get stream的方式封装出来方便实现麦克风录制及网络流等不同的流录制子类
File "D:\Fay-main\Fay-main\fay_booter.py", line 39, in get_stream
self.stream = self.paudio.open(input_device_index=device_id, rate=self.__RATE, format=self.FORMAT, channels=channels, input=True)
File "C:\Program Files\Python310\lib\site-packages\pyaudio_init
.py", line 639, in open
stream = PyAudio.Stream(self, *args, **kwargs)
File "C:\Program Files\Python310\lib\site-packages\pyaudio_init
.py", line 441, in init
self._stream = pa.open(**arguments)
ValueError: Invalid audio channels

在控制台上麦克风选择的是 微软声音映射器-Output