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.
GNU General Public License v3.0
9.29k stars 1.8k forks source link

使用微软语音和灵聚语音出现报错 #95

Open moonspring233 opened 11 months ago

moonspring233 commented 11 months ago

ERROR in app: Exception on /api/start-live [POST] Traceback (most recent call last): File "D:\envs\fay\lib\site-packages\flask\app.py", line 1455, in wsgi_app response = self.full_dispatch_request() File "D:\envs\fay\lib\site-packages\flask\app.py", line 869, in full_dispatch_request rv = self.handle_user_exception(e) File "D:\envs\fay\lib\site-packages\flask_cors\extension.py", line 176, in wrapped_function return cors_after_request(app.make_response(f(*args, kwargs))) File "D:\envs\fay\lib\site-packages\flask\app.py", line 867, in full_dispatch_request rv = self.dispatch_request() File "D:\envs\fay\lib\site-packages\flask\app.py", line 852, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(view_args) File "d:\Fay-fay-assistant-edition\gui\flask_server.py", line 96, in api_start_live fay_booter.start() File "d:\Fay-fay-assistant-edition\fay_booter.py", line 219, in start recorderListener = RecorderListener(record['device'], feiFei) # 监听麦克风 File "d:\Fay-fay-assistant-edition\fay_booter.py", line 25, in init super().init(fei) File "d:\Fay-fay-assistant-edition\core\recorder.py", line 39, in init self.__aLiNls = self.asrclient() File "d:\Fay-fay-assistant-edition\core\recorder.py", line 51, in asrclient return asrcli UnboundLocalError: local variable 'asrcli' referenced before assignment