RVC-Project / RVC-Project/Retrieval-based-Voice-Conversion-WebUI

MacBook error

Open
#2,226 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
38.4k
Forks
5.3k
PR merge metrics
No merged PRs in 30d

Description

I’m trying to perform voice modulation after running ./run.sh on my MacBook, but I’m encountering the following error. What should I do?

Traceback (most recent call last):
File "/Users/rhythy/Documents/AI/RVC-beta0717/my_utils.py", line 14, in load_audio
ffmpeg.input(file, threads=0)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/ffmpeg/_run.py", line 313, in run
process = run_async(
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/ffmpeg/_run.py", line 284, in run_async
return subprocess.Popen(
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 858, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "infer-web.py", line 180, in vc_single
audio = load_audio(input_audio_path, 16000)
File "/Users/rhythy/Documents/AI/RVC-beta0717/my_utils.py", line 19, in load_audio
raise RuntimeError(f"Failed to load audio: {e}")
RuntimeError: Failed to load audio: [Errno 2] No such file or directory: 'ffmpeg'

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/gradio/routes.py", line 321, in run_predict
output = await app.blocks.process_api(
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/gradio/blocks.py", line 1007, in process_api
data = self.postprocess_data(fn_index, result["prediction"], state)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/gradio/blocks.py", line 953, in postprocess_data
prediction_value = block.postprocess(prediction_value)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/gradio/components.py", line 2076, in postprocess
processing_utils.audio_to_file(sample_rate, data, file.name)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/gradio/processing_utils.py", line 206, in audio_to_file
data = convert_to_16_bit_wav(data)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/gradio/processing_utils.py", line 219, in convert_to_16_bit_wav
if data.dtype in [np.float64, np.float32, np.float16]:
AttributeError: 'NoneType' object has no attribute 'dtype'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running ./run.sh and tracing the audio-loading path in my_utils.py, especially load_audio at line 14. Check how infer-web.py calls vc_single and how the missing executable leads to the None audio value. Done means the reported MacBook flow loads the input audio successfully and produces a valid output instead of the shown traceback.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.