PaddlePaddle / PaddleSpeech

Easy-to-use Speech Toolkit including Self-Supervised Learning model, SOTA/Streaming ASR with punctuation, Streaming TTS with text frontend, Speaker Verification System, End-to-End Speech Translation and Keyword Spotting. Won NAACL2022 Best Demo Award.
https://paddlespeech.readthedocs.io
Apache License 2.0
10.97k stars 1.83k forks source link

codeswitch is true only in zh_en model #3258

Open gzmasterpulse opened 1 year ago

gzmasterpulse commented 1 year ago

输入paddlespeech_server start --config_file ./conf/application.yaml命令之后显示 grep: warning: GREP_OPTIONS is deprecated; please use an alias or script [nltk_data] Downloading package averaged_perceptron_tagger to [nltk_data] /root/nltk_data... [nltk_data] Unzipping taggers/averaged_perceptron_tagger.zip. [nltk_data] Downloading package cmudict to /root/nltk_data... [nltk_data] Unzipping corpora/cmudict.zip. [2023-05-20 05:30:13,689] [ INFO] - start to init the engine [2023-05-20 05:30:13,689] [ INFO] - asr : python engine. [2023-05-20 05:30:13,889] [ ERROR] - Failed to start server. [2023-05-20 05:30:13,889] [ ERROR] - codeswitch is true only in zh_en model

gzmasterpulse commented 1 year ago

是否因为版本问题造成,采用pip install paddlespeech安装后,把项目中的demos文件夹复制进去,运行paddlespeech_server start --config_file ./conf/conformer_talcs_application.yaml 提示上面的codeswitch is true only in zh_en model。纠正一下不是application.yaml,楼上问题中出现错误

zh794390558 commented 1 year ago

codeswitch目前只支持中英,需要用配置lang,并用 talcas 的模型

gzmasterpulse commented 1 year ago

codeswitch目前只支持中英,需要用配置lang,并用 talcas 的模型

目前用的conformer_talcs_application.yaml这个文件配置报的错误

gzmasterpulse commented 1 year ago

codeswitch目前只支持中英,需要用配置lang,并用 talcas 的模型 conformer_talcs_application.yaml配置中是这样的配置 asr_python: model: 'conformer_talcs' lang: 'zh_en' sample_rate: 16000 cfg_path: # [optional] ckpt_path: # [optional] decode_method: 'attention_rescoring' force_yes: True codeswitch: True device: # set 'gpu:id' or 'cpu'

Fmaj7 commented 1 year ago

develop的已经修复了,1.4.1的没有

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.