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

BUG ChatTTS Internal Server Error #1777

Open
halexan opened this issue Jul 4, 2024 · 6 comments
Open

BUG ChatTTS Internal Server Error #1777

halexan opened this issue Jul 4, 2024 · 6 comments
Labels
Milestone

Comments

@halexan
Copy link

halexan commented Jul 4, 2024

Describe the bug

ChatTTS部署成功,界面可以看到。

ChatTTS部署成功界面图

日志:
2024-07-04 00:42:25,572 xinference.model.utils 97 INFO Use model cache from a different hub.
2024-07-04 00:42:26,514 xinference.thirdparty.ChatTTS.core 16784 INFO Load from local: /root/.xinference/cache/ChatTTS
2024-07-04 00:42:27,649 xinference.thirdparty.ChatTTS.core 16784 INFO use cuda:0
2024-07-04 00:42:28,084 xinference.thirdparty.ChatTTS.core 16784 INFO vocos loaded.
2024-07-04 00:42:28,158 xinference.thirdparty.ChatTTS.core 16784 INFO dvae loaded.
2024-07-04 00:42:31,827 xinference.thirdparty.ChatTTS.core 16784 INFO gpt loaded.
2024-07-04 00:42:32,877 xinference.thirdparty.ChatTTS.core 16784 INFO decoder loaded.
2024-07-04 00:42:32,889 xinference.thirdparty.ChatTTS.core 16784 INFO tokenizer loaded.
2024-07-04 00:42:32,889 xinference.thirdparty.ChatTTS.core 16784 INFO All initialized.

但使用curl

curl -X 'POST' \
  'http://0.0.0.0:9997/v1/audio/speech' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "ChatTTS",
    "text": "Hello",
    "voice": "echo",
  }'

返回:
Internal Server Error

To Reproduce

To help us to reproduce this bug, please provide information below:

  1. Your Python version. 3.10.13
  2. The version of xinference you use. 0.12.3
  3. Versions of crucial packages.
  4. Full stack of the error.
  5. Minimized code to reproduce the error.
  6. docker image xprobe/xinference:v0.12.3

Expected behavior

返回语音mp3

@XprobeBot XprobeBot added the gpu label Jul 4, 2024
@XprobeBot XprobeBot added this to the v0.12.4 milestone Jul 4, 2024
@codingl2k1
Copy link
Contributor

服务的还有错误日志吗?

@XprobeBot XprobeBot modified the milestones: v0.13.0, v0.13.1 Jul 5, 2024
@halexan
Copy link
Author

halexan commented Jul 6, 2024

服务器没报错,也没有日志

@XprobeBot XprobeBot modified the milestones: v0.13.1, v0.13.2 Jul 12, 2024
@XprobeBot XprobeBot modified the milestones: v0.13.2, v0.13.4 Jul 26, 2024
@tsiens
Copy link

tsiens commented Aug 1, 2024

+1,我也是这样,chattts和CosyVoice-300M都这样
image

@codingl2k1
Copy link
Contributor

有尝试使用 xinference client 吗?如果要自己用 requests 实现请参考: https://github.com/xorbitsai/inference/blob/main/xinference/client/restful/restful_client.py#L764

@XprobeBot XprobeBot modified the milestones: v0.14, v0.15 Sep 3, 2024
@XprobeBot XprobeBot modified the milestones: v0.15, v0.16 Oct 30, 2024
@XprobeBot XprobeBot modified the milestones: v0.16, v1.x Nov 25, 2024
@wemio
Copy link

wemio commented Dec 19, 2024

chatTTS貌似安装上了,但是接入dify却提示TTS is not enable.Dify中已经设置了系统文字转语音模型为chatTTS,在智能体调用过程中,也设置了文字转语音的功能,但播放没声音,一切就像没有成功一样。
image
Dify中报错:
{
"code": "method_not_allowed",
"message": "The method is not allowed for the requested URL.",
"status": 405
}

@cq134cq
Copy link

cq134cq commented Jan 23, 2025

同问

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

No branches or pull requests

6 participants