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.
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
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