调用FunASR/runtime/http服务出现错误 basic_string::_M_construct null not valid
使用https://github.com/modelscope/FunASR/blob/main/runtime/http/readme_zh.md 这里的文档自行build了一个http服务端,可以正常启动
但curl -F "[email protected]" 127.0.0.1:80调用的时候出现错误 basic_string::_M_construct null not valid
meeting the same question ,any one hava an idea of what's wrong?
meeting the same question
example_runsh.zip 我的环境可以,wav和运行命令见附件。只支持离线模型,wav文件名别有下划线。
/funasr-http-server --vad-dir damo/speech_fsmn_vad_zh-cn-16k-common-onnx --model-dir damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-onnx --punc-dir damo/punc_ct-transformer_cn-en-common-vocab471067-large-onnx --itn-dir '' --lm-dir '' --port 80
https://github.com/user-attachments/assets/2ab28d22-368a-40bc-8626-eb2eb35cd175
一样的问题,我是直接在funasr-runtime-sdk-cpu-0.4.5镜像中编译的http客户端
wav文件名别有下划线
删除下划线也不行。
hotwords: set wav_format=pcm, file_name=asr.example.wav
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_M_construct null not valid
Aborted (core dumped)
使用https://github.com/modelscope/FunASR/blob/main/runtime/http/readme_zh.md 这里的文档自行build了一个http服务端,可以正常启动
但curl -F "[email protected]" 127.0.0.1:80调用的时候出现错误 basic_string::_M_construct null not valid
meeting the same question. How to solve this problem?
example_runsh.zip 我的环境可以,wav和运行命令见附件。只支持离线模型,wav文件名别有下划线。
/funasr-http-server --vad-dir damo/speech_fsmn_vad_zh-cn-16k-common-onnx --model-dir damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-onnx --punc-dir damo/punc_ct-transformer_cn-en-common-vocab471067-large-onnx --itn-dir '' --lm-dir '' --port 80
你好,我也遇到了相同的问题,也是http服务器端能够正常启动,但是通过curl -F命令上传文件进行识别的时候报错terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::substr: __pos (which is 1) > this->size() (which is 140318863265215) 请问这个有什么解决方法吗?
wav文件名别有下划线
删除下划线也不行。
hotwords: set wav_format=pcm, file_name=asr.example.wav terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_M_construct null not valid Aborted (core dumped)
请问你解决了吗?我也遇到了这个报错
你好,我也遇到了相同的问题,也是http服务器端能够正常启动,但是通过curl -F命令上传文件进行识别的时候报错terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::substr: __pos (which is 1) > this->size() (which is 140318863265215) 请问这个有什么解决方法吗?@lukeewin 请问你解决了吗