FunASR
FunASR copied to clipboard
部署没问题,无法调用
Notice: In order to resolve issues more efficiently, please raise issue following the template. (注意:为了更加高效率解决您遇到的问题,请按照模板提问,补充细节)
🐛 Bug
前端无法调用,10095端口是开放的
To Reproduce
Steps to reproduce the behavior (always include the command you ran):
- Run cmd 'nohup bash run_server.sh --download-model-dir /workspace/models --model-dir damo/speech_paraformer-large-vad-punc_asr_nat-zh-cn-16k-common-vocab8404-pytorch --certfile 0 --hotword /workspace/models/hotwords.txt > log.txt 2>&1 & '
- See error
Code sample
Expected behavior
Environment
- OS (e.g., Linux): Ubuntu 20.04
- FunASR Version (e.g., 1.0.0): Latest
- ModelScope Version (e.g., 1.11.0):
- PyTorch Version (e.g., 2.0.0):
- How you installed funasr (
pip, source): - Python version:
- GPU (e.g., V100M32) V00-16G
- CUDA/cuDNN version (e.g., cuda11.7): 12.4
- Docker version (e.g., funasr-runtime-sdk-cpu-0.4.1) Latest
- Any other relevant information:
Additional context
Notice: In order to resolve issues more efficiently, please raise issue following the template. (注意:为了更加高效率解决您遇到的问题,请按照模板提问,补充细节)
🐛 Bug
前端无法调用,10095端口是开放的
To Reproduce
Steps to reproduce the behavior (always include the command you ran):
- Run cmd 'nohup bash run_server.sh --download-model-dir /workspace/models --model-dir damo/speech_paraformer-large-vad-punc_asr_nat-zh-cn-16k-common-vocab8404-pytorch --certfile 0 --hotword /workspace/models/hotwords.txt > log.txt 2>&1 & '
- See error
Code sample
Expected behavior
Environment
- OS (e.g., Linux): Ubuntu 20.04
- FunASR Version (e.g., 1.0.0): Latest
- ModelScope Version (e.g., 1.11.0):
- PyTorch Version (e.g., 2.0.0):
- How you installed funasr (
pip, source):- Python version:
- GPU (e.g., V100M32) V00-16G
- CUDA/cuDNN version (e.g., cuda11.7): 12.4
- Docker version (e.g., funasr-runtime-sdk-cpu-0.4.1) Latest
- Any other relevant information:
Additional context
点击一下授权试试
我遇到了同样的情况,在镜像内使用127.0.0.1是可以的,镜像外部的映射端口就无法连接
我遇到了同样的情况,在镜像内使用127.0.0.1是可以的,镜像外部的映射端口就无法连接
![]()
当我按照ssl_key目录中的命令:
### 1)生成私钥,按照提示填写内容
openssl genrsa -des3 -out server.key 1024
### 2)生成csr文件 ,按照提示填写内容
openssl req -new -key server.key -out server.csr
### 去掉pass
cp server.key server.key.org
openssl rsa -in server.key.org -out server.key
### 生成crt文件,有效期1年(365天)
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
报错:
Traceback (most recent call last):
File "funasr_wss_server.py", line 336, in
ssl_context.load_cert_chain(ssl_cert, keyfile=ssl_key)
ssl.SSLError: [SSL: EE_KEY_TOO_SMALL] ee key too small (_ssl.c:4046)
然后执行:
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout server.key -out server.crt
重新生成一遍。
最后,再次启动/workspace/FunASR/runtime/python/websocket# python funasr_wss_server.py --port 10095
html端就可以连接了,看来还是ssl认证的问题。
是否为http协议网站,http协议页面无法发起wss请求,只能发送ws请求