RVC-Project / RVC-Project/Retrieval-based-Voice-Conversion-WebUI
MacOS m1, Training successful, audio conversion output error(训练成功,音频转换输出错误)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 38.4k
- Forks
- 5.3k
- PR merge metrics
- No merged PRs in 30d
Description
I had no problems during training, and successfully found the model I wanted in the timbre options. However, when I selected the output audio, the following error occurred(我在训练中没有出现问题,也成功的在音色选项中找到了我要的模型,然而选择输出音频时出现了以下报错):
DEBUG:matplotlib.pyplot:Loaded backend macosx version unknown.
DEBUG:matplotlib.pyplot:Loaded backend agg version v2.2.
INFO:infer.modules.vc.modules:Get sid: Male-1.pth
INFO:infer.modules.vc.modules:Loading: assets/weights/Male-1.pth
DEBUG:infer.lib.infer_pack.models:gin_channels: 256, self.spk_embed_dim: 109
INFO:infer.modules.vc.modules:Select index:
DEBUG:matplotlib.pyplot:Loaded backend MacOSX version unknown.
DEBUG:matplotlib.pyplot:Loaded backend agg version v2.2.
WARNING:infer.modules.vc.modules:Traceback (most recent call last):
File "/Users/eden/Retrieval-based-Voice-Conversion-WebUI/infer/lib/audio.py", line 38, in load_audio
ffmpeg.input(file, threads=0)
File "/Users/eden/.pyenv/versions/3.9.2/lib/python3.9/site-packages/ffmpeg/_run.py", line 325, in run
raise Error('ffmpeg', out, err)
ffmpeg._run.Error: ffmpeg error (see stderr output for detail)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/eden/Retrieval-based-Voice-Conversion-WebUI/infer/modules/vc/modules.py", line 165, in vc_single
audio = load_audio(input_audio_path, 16000)
File "/Users/eden/Retrieval-based-Voice-Conversion-WebUI/infer/lib/audio.py", line 43, in load_audio
raise RuntimeError(f"Failed to load audio: {e}")
RuntimeError: Failed to load audio: ffmpeg error (see stderr output for detail)
DEBUG:matplotlib.pyplot:Loaded backend MacOSX version unknown.
Traceback (most recent call last):
File "/Users/eden/.pyenv/versions/3.9.2/lib/python3.9/site-packages/gradio/queueing.py", line 501, in call_prediction
output = await route_utils.call_process_api(
File "/Users/eden/.pyenv/versions/3.9.2/lib/python3.9/site-packages/gradio/route_utils.py", line 258, in call_process_api
output = await app.get_blocks().process_api(
File "/Users/eden/.pyenv/versions/3.9.2/lib/python3.9/site-packages/gradio/blocks.py", line 1693, in process_api
data = self.postprocess_data(fn_index, result["prediction"], state)
File "/Users/eden/.pyenv/versions/3.9.2/lib/python3.9/site-packages/gradio/blocks.py", line 1535, in postprocess_data
prediction_value = block.postprocess(prediction_value)
File "/Users/eden/.pyenv/versions/3.9.2/lib/python3.9/site-packages/gradio/components/audio.py", line 263, in postprocess
file_path = processing_utils.save_audio_to_cache(
File "/Users/eden/.pyenv/versions/3.9.2/lib/python3.9/site-packages/gradio/processing_utils.py", line 167, in save_audio_to_cache
temp_dir = Path(cache_dir) / hash_bytes(data.tobytes())
AttributeError: 'NoneType' object has no attribute 'tobytes'
What should I do?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with infer/lib/audio.py:38-43 and trace its call from infer/modules/vc/modules.py:165. Reproduce the output-audio conversion on macOS M1 while capturing ffmpeg's stderr; done means the selected input audio loads successfully and conversion returns audio instead of the reported errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- audio-video-rtc
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100