Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行api_v2.py,post文本语言为zh(中英混合),会INFO: 127.0.0.1:53391 - "POST /tts HTTP/1.1" 400 Bad Request #2055

Open
jianerwuling opened this issue Feb 15, 2025 · 3 comments

Comments

@jianerwuling
Copy link

"text_lang": "zh",all-zh能运行但会出现大串乱码,zh应该是中英混合,但text含有任何字母(非中文文本,英文)运行会出现INFO: 127.0.0.1:53391 - "POST /tts HTTP/1.1" 400 Bad Request,{"message":"tts failed","Exception":"File is not a zip file"},"text_lang": "en" text为英文文本时也是相同的错误。总结:调用api-v2时我无法用它处理中英混合文本

@shushenghong
Copy link

同样的问题,扎解决

@yang-jingsen
Copy link

同样的问题,linux 部署

@shushenghong
Copy link

是nltk数据的问题,我下载了一个 averaged_perceptron_tagger_eng放到nltk_data/taggers目录下就好了
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants