You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(bailing) hygx@hygx:~/code/bailing$ python main.py
pygame 2.6.1 (SDL 2.28.4, Python 3.11.11)
Hello from the pygame community. https://www.pygame.org/contribute.html
2025-01-25 09:59:51,890 - playsound - WARNING - playsound is relying on another python subprocess. Please use `pip install pygobject` if you want playsound to run more efficiently.
2025-01-25 09:59:52,766 - torio._extension.utils - DEBUG - Loading FFmpeg6
2025-01-25 09:59:52,789 - torio._extension.utils - DEBUG - Successfully loaded FFmpeg6
2025-01-25 09:59:53,933 - root - INFO - new registry table has been added: preprocessor_classes
2025-01-25 09:59:54,361 - root - INFO - new registry table has been added: adaptor_classes
2025-01-25 09:59:54,647 - root - INFO - new registry table has been added: lid_predictor_classes
/home/hygx/code/bailing/bailing/rag.py:1: LangChainDeprecationWarning: Importing HuggingFaceBgeEmbeddings from langchain.embeddings is deprecated. Please replace deprecated imports:
>> from langchain.embeddings import HuggingFaceBgeEmbeddings
with new imports of:
>> from langchain_community.embeddings import HuggingFaceBgeEmbeddings
You can use the langchain cli to **automatically** upgrade many imports. Please see documentation here <https://python.langchain.com/docs/versions/v0_2/>
from langchain.embeddings import HuggingFaceBgeEmbeddings
/home/hygx/code/bailing/bailing/rag.py:2: LangChainDeprecationWarning: Importing FAISS from langchain.vectorstores is deprecated. Please replace deprecated imports:
>> from langchain.vectorstores import FAISS
with new imports of:
>> from langchain_community.vectorstores import FAISS
You can use the langchain cli to **automatically** upgrade many imports. Please see documentation here <https://python.langchain.com/docs/versions/v0_2/>
from langchain.vectorstores import FAISS
/home/hygx/code/bailing/bailing/rag.py:4: LangChainDeprecationWarning: Importing DirectoryLoader from langchain.document_loaders is deprecated. Please replace deprecated imports:
>> from langchain.document_loaders import DirectoryLoader
with new imports of:
>> from langchain_community.document_loaders import DirectoryLoader
You can use the langchain cli to **automatically** upgrade many imports. Please see documentation here <https://python.langchain.com/docs/versions/v0_2/>
from langchain.document_loaders import DirectoryLoader, TextLoader
/home/hygx/code/bailing/bailing/rag.py:4: LangChainDeprecationWarning: Importing TextLoader from langchain.document_loaders is deprecated. Please replace deprecated imports:
>> from langchain.document_loaders import TextLoader
with new imports of:
>> from langchain_community.document_loaders import TextLoader
You can use the langchain cli to **automatically** upgrade many imports. Please see documentation here <https://python.langchain.com/docs/versions/v0_2/>
from langchain.document_loaders import DirectoryLoader, TextLoader
2025-01-25 09:59:56,180 - plugins.registry - INFO - 函数 'get_day_of_week' 注册成功
2025-01-25 09:59:56,180 - plugins.task_manager - INFO - 模块 'plugins.functions.get_day_of_week' 已加载
2025-01-25 09:59:56,314 - plugins.registry - INFO - 函数 'get_weather' 注册成功
2025-01-25 09:59:56,314 - plugins.task_manager - INFO - 模块 'plugins.functions.get_weather' 已加载
2025-01-25 09:59:56,314 - plugins.registry - INFO - 函数 'ielts_speaking_practice' 注册成功
2025-01-25 09:59:56,314 - plugins.task_manager - INFO - 模块 'plugins.functions.ielts_speaking_practice' 已加载
2025-01-25 09:59:56,315 - plugins.registry - INFO - 函数 'open_application' 注册成功
2025-01-25 09:59:56,315 - plugins.task_manager - INFO - 模块 'plugins.functions.open_application' 已加载
2025-01-25 09:59:56,316 - plugins.registry - INFO - 函数 'schedule_task' 注册成功
2025-01-25 09:59:56,316 - plugins.task_manager - INFO - 模块 'plugins.functions.schedule_task' 已加载
2025-01-25 09:59:56,317 - plugins.registry - INFO - 函数 'search_local_documents' 注册成功
2025-01-25 09:59:56,317 - plugins.task_manager - INFO - 模块 'plugins.functions.search_local_documents' 已加载
2025-01-25 09:59:56,317 - plugins.registry - INFO - 函数 'web_search' 注册成功
2025-01-25 09:59:56,317 - plugins.task_manager - INFO - 模块 'plugins.functions.web_search' 已加载
funasr version: 1.1.6.
2025-01-25 09:59:56,320 - root - INFO - download models from model hub: hf
Detect model requirements, begin to install it: models/SenseVoiceSmall/requirements.txt
install model requirements successfully
2025-01-25 09:59:58,923 - root - INFO - Loading pretrained params from models/SenseVoiceSmall/model.pt
2025-01-25 09:59:58,927 - root - INFO - ckpt: models/SenseVoiceSmall/model.pt
/home/hygx/anaconda3/envs/bailing/lib/python3.11/site-packages/funasr/train_utils/load_pretrained_model.py:38: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
src_state = torch.load(path, map_location=map_location)
2025-01-25 09:59:59,763 - root - INFO - scope_map: ['module.', 'None']
2025-01-25 09:59:59,763 - root - INFO - excludes: None
2025-01-25 09:59:59,860 - root - INFO - Loading ckpt: models/SenseVoiceSmall/model.pt, status: <All keys matched successfully>
2025-01-25 10:00:00,279 - httpx - DEBUG - load_ssl_context verify=True cert=None trust_env=True http2=False
2025-01-25 10:00:00,280 - httpx - DEBUG - load_verify_locations cafile='/home/hygx/anaconda3/envs/bailing/lib/python3.11/site-packages/certifi/cacert.pem'
2025-01-25 10:00:00,292 - httpx - DEBUG - load_ssl_context verify=True cert=None trust_env=True http2=False
2025-01-25 10:00:00,292 - httpx - DEBUG - load_verify_locations cafile='/home/hygx/anaconda3/envs/bailing/lib/python3.11/site-packages/certifi/cacert.pem'
2025-01-25 10:00:00,305 - httpx - DEBUG - load_ssl_context verify=True cert=None trust_env=True http2=False
2025-01-25 10:00:00,305 - httpx - DEBUG - load_verify_locations cafile='/home/hygx/anaconda3/envs/bailing/lib/python3.11/site-packages/certifi/cacert.pem'
SileroVAD {'sampling_rate': 16000, 'threshold': 0.5, 'min_silence_duration_ms': 200}
2025-01-25 10:00:00,365 - bailing.vad - DEBUG - VAD Iterator initialized with model RecursiveScriptModule(
original_name=VADRNNJITMerge
(_model): RecursiveScriptModule(
original_name=VADRNNJIT
(stft): RecursiveScriptModule(
original_name=STFT
(padding): RecursiveScriptModule(original_name=ReflectionPad1d)
)
(encoder): RecursiveScriptModule(
original_name=Sequential
(0): RecursiveScriptModule(
original_name=SileroVadBlock
(se): RecursiveScriptModule(original_name=Identity)
(activation): RecursiveScriptModule(original_name=ReLU)
(reparam_conv): RecursiveScriptModule(original_name=Conv1d)
)
(1): RecursiveScriptModule(
original_name=SileroVadBlock
(se): RecursiveScriptModule(original_name=Identity)
(activation): RecursiveScriptModule(original_name=ReLU)
(reparam_conv): RecursiveScriptModule(original_name=Conv1d)
)
(2): RecursiveScriptModule(
original_name=SileroVadBlock
(se): RecursiveScriptModule(original_name=Identity)
(activation): RecursiveScriptModule(original_name=ReLU)
(reparam_conv): RecursiveScriptModule(original_name=Conv1d)
)
(3): RecursiveScriptModule(
original_name=SileroVadBlock
(se): RecursiveScriptModule(original_name=Identity)
(activation): RecursiveScriptModule(original_name=ReLU)
(reparam_conv): RecursiveScriptModule(original_name=Conv1d)
)
)
(decoder): RecursiveScriptModule(
original_name=VADDecoderRNNJIT
(rnn): RecursiveScriptModule(original_name=LSTMCell)
(decoder): RecursiveScriptModule(
original_name=Sequential
(0): RecursiveScriptModule(original_name=Dropout)
(1): RecursiveScriptModule(original_name=ReLU)
(2): RecursiveScriptModule(original_name=Conv1d)
(3): RecursiveScriptModule(original_name=Sigmoid)
)
)
)
(_model_8k): RecursiveScriptModule(
original_name=VADRNNJIT
(stft): RecursiveScriptModule(
original_name=STFT
(padding): RecursiveScriptModule(original_name=ReflectionPad1d)
)
(encoder): RecursiveScriptModule(
original_name=Sequential
(0): RecursiveScriptModule(
original_name=SileroVadBlock
(se): RecursiveScriptModule(original_name=Identity)
(activation): RecursiveScriptModule(original_name=ReLU)
(reparam_conv): RecursiveScriptModule(original_name=Conv1d)
)
(1): RecursiveScriptModule(
original_name=SileroVadBlock
(se): RecursiveScriptModule(original_name=Identity)
(activation): RecursiveScriptModule(original_name=ReLU)
(reparam_conv): RecursiveScriptModule(original_name=Conv1d)
)
(2): RecursiveScriptModule(
original_name=SileroVadBlock
(se): RecursiveScriptModule(original_name=Identity)
(activation): RecursiveScriptModule(original_name=ReLU)
(reparam_conv): RecursiveScriptModule(original_name=Conv1d)
)
(3): RecursiveScriptModule(
original_name=SileroVadBlock
(se): RecursiveScriptModule(original_name=Identity)
(activation): RecursiveScriptModule(original_name=ReLU)
(reparam_conv): RecursiveScriptModule(original_name=Conv1d)
)
)
(decoder): RecursiveScriptModule(
original_name=VADDecoderRNNJIT
(rnn): RecursiveScriptModule(original_name=LSTMCell)
(decoder): RecursiveScriptModule(
original_name=Sequential
(0): RecursiveScriptModule(original_name=Dropout)
(1): RecursiveScriptModule(original_name=ReLU)
(2): RecursiveScriptModule(original_name=Conv1d)
(3): RecursiveScriptModule(original_name=Sigmoid)
)
)
)
)
(None,) {}
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
Traceback (most recent call last):
File "/home/hygx/code/bailing/main.py", line 58, in <module>
robot = robot.Robot(config_path)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hygx/code/bailing/bailing/robot.py", line 71, in __init__
self.player = player.create_instance(
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hygx/code/bailing/bailing/player.py", line 221, in create_instance
return cls(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/home/hygx/code/bailing/bailing/player.py", line 149, in __init__
pygame.mixer.init()
pygame.error: ALSA: Couldn't open audio device: No such file or directory
我按照文档,在我的windows系统下的WSL里(Ubuntu系统)下载了代码和模型文件,修改配置,然后执行了server下的 server.py,然后新开一个WSL窗口执行了代码根目录下的main.py,server.py执行成功了,main.py 有报错, 日志如下:
在windows下打开127.0.0.1:5000,出来了百聆的界面,但界面上就一个加载框,一直在转圈,显示加载中,如下:
请问是什么原因,如何解决?
The text was updated successfully, but these errors were encountered: