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

无法下载音频 #848

Open
Lathezero opened this issue Jan 8, 2025 · 3 comments
Open

无法下载音频 #848

Lathezero opened this issue Jan 8, 2025 · 3 comments

Comments

@Lathezero
Copy link

请教一下,推理完的音频点击下载后过了五分钟才响应下载,并且下载了一个txt文件和一个没有内容的.wav文件

6 4 5

目前只能在系统缓存目录找到音频

1

终端

2
@aluminumbox
Copy link
Collaborator

gradio版本问题,更新requirements升级gradio

@libhot
Copy link

libhot commented Jan 8, 2025

同样有下载不了生成的录音,安装 requirements.txt里的gradio,升级几个版本一样不能下载,
升级gradio到最新5.10.0,运行有报错,
Traceback (most recent call last):
File "/opt/miniconda3/envs/cosyvoice/lib/python3.10/site-packages/gradio/queueing.py", line 625, in process_events
response = await route_utils.call_process_api(
File "/opt/miniconda3/envs/cosyvoice/lib/python3.10/site-packages/gradio/route_utils.py", line 322, in call_process_api
output = await app.get_blocks().process_api(
File "/opt/miniconda3/envs/cosyvoice/lib/python3.10/site-packages/gradio/blocks.py", line 2041, in process_api
inputs = await self.preprocess_data(
File "/opt/miniconda3/envs/cosyvoice/lib/python3.10/site-packages/gradio/blocks.py", line 1736, in preprocess_data
processed_input.append(block.preprocess(inputs_cached))
File "/opt/miniconda3/envs/cosyvoice/lib/python3.10/site-packages/gradio/components/dropdown.py", line 202, in preprocess
raise Error(
gradio.exceptions.Error: 'Value: is not in the list of choices: []'

@libhot
Copy link

libhot commented Jan 8, 2025

同样有下载不了生成的录音,安装 requirements.txt里的gradio,升级几个版本一样不能下载, 升级gradio到最新5.10.0,运行有报错, Traceback (most recent call last): File "/opt/miniconda3/envs/cosyvoice/lib/python3.10/site-packages/gradio/queueing.py", line 625, in process_events response = await route_utils.call_process_api( File "/opt/miniconda3/envs/cosyvoice/lib/python3.10/site-packages/gradio/route_utils.py", line 322, in call_process_api output = await app.get_blocks().process_api( File "/opt/miniconda3/envs/cosyvoice/lib/python3.10/site-packages/gradio/blocks.py", line 2041, in process_api inputs = await self.preprocess_data( File "/opt/miniconda3/envs/cosyvoice/lib/python3.10/site-packages/gradio/blocks.py", line 1736, in preprocess_data processed_input.append(block.preprocess(inputs_cached)) File "/opt/miniconda3/envs/cosyvoice/lib/python3.10/site-packages/gradio/components/dropdown.py", line 202, in preprocess raise Error( gradio.exceptions.Error: 'Value: is not in the list of choices: []'

分析代码发现,是因为有bug,list_available_spks读不到预训练列表。在CosyVoice2模型目录下,放置文件spk2info.pt与speech_tokenizer_v1.onnx就可以了

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