RVC-Project / RVC-Project/Retrieval-based-Voice-Conversion-WebUI
Need Help 求帮助
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 38.4k
- Forks
- 5.3k
- PR merge metrics
- No merged PRs in 30d
Description
2025-04-11 03:41:30 | WARNING | infer.modules.vc.modules | Traceback (most recent call last):
File "C:\Users\G\Downloads\RVC1006AMD_Intel1\infer\lib\audio.py", line 63, in load_audio
audio2(f, out, "f32le", sr)
File "C:\Users\G\Downloads\RVC1006AMD_Intel1\infer\lib\audio.py", line 34, in audio2
inp = av.open(i, "rb")
File "av/container/core.pyx", line 396, in av.container.core.open
ValueError: mode must be 'r', 'w', or None, got: rb
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\G\Downloads\RVC1006AMD_Intel1\infer\modules\vc\modules.py", line 163, in vc_single
audio = load_audio(input_audio_path, 16000)
File "C:\Users\G\Downloads\RVC1006AMD_Intel1\infer\lib\audio.py", line 73, in load_audio
raise RuntimeError(traceback.format_exc())
RuntimeError: Traceback (most recent call last):
File "C:\Users\G\Downloads\RVC1006AMD_Intel1\infer\lib\audio.py", line 63, in load_audio
audio2(f, out, "f32le", sr)
File "C:\Users\G\Downloads\RVC1006AMD_Intel1\infer\lib\audio.py", line 34, in audio2
inp = av.open(i, "rb")
File "av/container/core.pyx", line 396, in av.container.core.open
ValueError: mode must be 'r', 'w', or None, got: rb
Traceback (most recent call last):
File "C:\Users\G\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\routes.py", line 401, in run_predict
output = await app.get_blocks().process_api(
File "C:\Users\G\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\blocks.py", line 1305, in process_api
data = self.postprocess_data(fn_index, result["prediction"], state)
File "C:\Users\G\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\blocks.py", line 1239, in postprocess_data
prediction_value = block.postprocess(prediction_value)
File "C:\Users\G\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\components.py", line 2542, in postprocess
processing_utils.audio_to_file(sample_rate, data, file.name)
File "C:\Users\G\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\processing_utils.py", line 160, in audio_to_file
data = convert_to_16_bit_wav(data)
File "C:\Users\G\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\processing_utils.py", line 174, in convert_to_16_bit_wav
if data.dtype in [np.float64, np.float32, np.float16]:
AttributeError: 'NoneType' object has no attribute 'dtype'
2025-04-11 03:41:30 | INFO | httpx | HTTP Request: POST http://localhost:7865/api/predict "HTTP/1.1 500 Internal Server Error"
2025-04-11 03:41:30 | INFO | httpx | HTTP Request: POST http://localhost:7865/reset "HTTP/1.1 200 OK"``
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 at infer/lib/audio.py, especially audio2 on line 34 and load_audio on line 63, then trace how infer/modules/vc/modules.py calls load_audio from vc_single. Reproduce the reported audio-conversion failure and verify that the conversion path produces valid audio data for the Gradio response.
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
- Needs clarification
- Newbie friendliness
- 25/100