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

Getting failed to load audio error

Open
#1,329 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I am storing the voice like this:-

Download Results:
gid   |stat|avg speed  |path/URI
======+====+===========+=======================================================
353dd9|OK  |   472KiB/s|/content/Retrieval-based-Voice-Conversion-WebUI/dataset/alia.wav

On running the cell having commands:-

%cd /content/Retrieval-based-Voice-Conversion-WebUI
sudo python3 infer-web.py --colab --pycmd python3

the UI is starting up:-
Screenshot (318)

I think it's taking the location fine as it can read up the wav file inside the dataset folder but still getting the error:-

start preprocess
['trainset_preprocess_pipeline_print.py', 'dataset', '40000', '2', '/content/Retrieval-based-Voice-Conversion-WebUI/logs/mi-test', 'False']
dataset/alia.wav->Traceback (most recent call last):
  File "/content/Retrieval-based-Voice-Conversion-WebUI/my_utils.py", line 14, in load_audio
    ffmpeg.input(file, threads=0)
  File "/usr/local/lib/python3.8/dist-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 "trainset_preprocess_pipeline_print.py", line 75, in pipeline
    audio = load_audio(path, self.sr)
  File "/content/Retrieval-based-Voice-Conversion-WebUI/my_utils.py", line 19, in load_audio
    raise RuntimeError(f"Failed to load audio: {e}")
RuntimeError: Failed to load audio: ffmpeg error (see stderr output for detail)

end preprocess

I have tried all the ways quotes and without quotes, using double slashes and single slash, don't have spaces in file or folder name.

Any suggestions or help will be much appreciated.

Thanks in advance.

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 with the failing dataset/alia.wav input and the traceback in trainset_preprocess_pipeline_print.py, then read my_utils.py around load_audio. Reproduce the preprocessing command and capture ffmpeg's stderr output to identify why the file cannot be loaded. Done means documenting or fixing the reproducible cause and confirming preprocessing completes for the sample audio.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
audio-video-rtc, machine-learning
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.