Skip to content

baize.exceptions.HTTPException: (500, "'No audio generated, please check the input text.'") #946

Description

@GanziPo

Self Checks

  • This template is only for bug reports. For questions, please visit Discussions.
  • I have thoroughly reviewed the project documentation (installation, training, inference) but couldn't find information to solve my problem. English 中文 日本語 Portuguese (Brazil)
  • I have searched for existing issues, including closed ones. Search issues
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template and fill in all required fields.

Cloud or Self Hosted

Self Hosted (Source)

Environment Details

python=3.10,torch==2.4.1,torchvision==0.19.1,torchaudio==2.4.1

Steps to Reproduce

sudo /root/miniconda3/envs/fish-speech/bin/python -m tools.api_server
--listen 0.0.0.0:8080
--llama-checkpoint-path "checkpoints/fish-speech-1.5"
--decoder-checkpoint-path "checkpoints/fish-speech-1.5/firefly-gan-vq-fsq-8x1024-21hz-generator.pth"
--decoder-config-name firefly_gan_vq
--compile

python -m tools.api_client --text "要输入的文本" --reference_audio "/bigdata/xiaozhi/wav/xionger-v1/denoise_opt/vocal_xionger-kanshu.mp3.reformatted.wav_10.wav_0000000000_0000167680.wav" --reference_text "熊大光头强又在砍俺们的树了,勇敢,牛牛不怕困难。" --streaming False

✔️ Expected Behavior

No response

❌ Actual Behavior

ALSA lib pcm_dsnoop.c:601:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1032:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
ALSA lib pcm_dmix.c:1032:(snd_pcm_dmix_open) unable to open slave
Traceback (most recent call last):
File "/root/miniconda3/envs/fish-speech/lib/python3.10/site-packages/requests/models.py", line 820, in generate
yield from self.raw.stream(chunk_size, decode_content=True)
File "/root/miniconda3/envs/fish-speech/lib/python3.10/site-packages/urllib3/response.py", line 1063, in stream
yield from self.read_chunked(amt, decode_content=decode_content)
File "/root/miniconda3/envs/fish-speech/lib/python3.10/site-packages/urllib3/response.py", line 1219, in read_chunked
self._update_chunk_length()
File "/root/miniconda3/envs/fish-speech/lib/python3.10/site-packages/urllib3/response.py", line 1149, in _update_chunk_length
raise ProtocolError("Response ended prematurely") from None
urllib3.exceptions.ProtocolError: Response ended prematurely

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/root/miniconda3/envs/fish-speech/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/root/miniconda3/envs/fish-speech/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/bigdata/xiaozhi/tts/fish-speech/tools/api_client.py", line 201, in
for chunk in response.iter_content(chunk_size=1024):
File "/root/miniconda3/envs/fish-speech/lib/python3.10/site-packages/requests/models.py", line 822, in generate
raise ChunkedEncodingError(e)
requests.exceptions.ChunkedEncodingError: Response ended prematurely

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions