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

Unable to clean audio

Open
#1,392 3 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'm getting this error:

20231007_154555008.wav.reformatted.wav->Traceback (most recent call last):
File "C:\Users\babud\AppData\Local\Programs\Python\Python310\lib\site-packages\librosa\core\audio.py", line 155, in load
context = sf.SoundFile(path)
File "C:\Users\babud\AppData\Local\Programs\Python\Python310\lib\site-packages\soundfile.py", line 658, in init
self._file = self._open(file, mode_int, closefd)
File "C:\Users\babud\AppData\Local\Programs\Python\Python310\lib\site-packages\soundfile.py", line 1216, in _open
raise LibsndfileError(err, prefix="Error opening {0!r}: ".format(self.name))
soundfile.LibsndfileError: Error opening 'D:\Voice\TEMP/20231007_154555008.wav.reformatted.wav': System error.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Voice\infer\modules\uvr5\modules.py", line 73, in uvr
pre_fun.path_audio(
File "D:\Voice\infer\modules\uvr5\preprocess.py", line 61, in path_audio
) = librosa.core.load( # 理论上librosa读取可能对某些音频有bug,应该上ffmpeg读取,但是太麻烦了弃坑
File "C:\Users\babud\AppData\Local\Programs\Python\Python310\lib\site-packages\librosa\util\decorators.py", line 104, in inner_f
return f(**kwargs)
File "C:\Users\babud\AppData\Local\Programs\Python\Python310\lib\site-packages\librosa\core\audio.py", line 174, in load
y, sr_native = __audioread_load(path, offset, duration, dtype)
File "C:\Users\babud\AppData\Local\Programs\Python\Python310\lib\site-packages\librosa\core\audio.py", line 198, in _audioread_load
with audioread.audio_open(path) as input_file:
File "C:\Users\babud\AppData\Local\Programs\Python\Python310\lib\site-packages\audioread_init
.py", line 127, in audio_open
return BackendClass(path)
File "C:\Users\babud\AppData\Local\Programs\Python\Python310\lib\site-packages\audioread\rawread.py", line 59, in init
self._fh = open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'D:\Voice\TEMP/20231007_154555008.wav.reformatted.wav'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\babud\AppData\Local\Programs\Python\Python310\lib\site-packages\librosa\core\audio.py", line 155, in load
context = sf.SoundFile(path)
File "C:\Users\babud\AppData\Local\Programs\Python\Python310\lib\site-packages\soundfile.py", line 658, in init
self._file = self._open(file, mode_int, closefd)
File "C:\Users\babud\AppData\Local\Programs\Python\Python310\lib\site-packages\soundfile.py", line 1216, in _open
raise LibsndfileError(err, prefix="Error opening {0!r}: ".format(self.name))
soundfile.LibsndfileError: Error opening 'D:\Voice\TEMP/20231007_154555008.wav.reformatted.wav': System error.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Voice\infer\modules\uvr5\modules.py", line 81, in uvr
pre_fun.path_audio(
File "D:\Voice\infer\modules\uvr5\preprocess.py", line 61, in path_audio
) = librosa.core.load( # 理论上librosa读取可能对某些音频有bug,应该上ffmpeg读取,但是太麻烦了弃坑
File "C:\Users\babud\AppData\Local\Programs\Python\Python310\lib\site-packages\librosa\util\decorators.py", line 104, in inner_f
return f(**kwargs)
File "C:\Users\babud\AppData\Local\Programs\Python\Python310\lib\site-packages\librosa\core\audio.py", line 174, in load
y, sr_native = __audioread_load(path, offset, duration, dtype)
File "C:\Users\babud\AppData\Local\Programs\Python\Python310\lib\site-packages\librosa\core\audio.py", line 198, in _audioread_load
with audioread.audio_open(path) as input_file:
File "C:\Users\babud\AppData\Local\Programs\Python\Python310\lib\site-packages\audioread_init
.py", line 127, in audio_open
return BackendClass(path)
File "C:\Users\babud\AppData\Local\Programs\Python\Python310\lib\site-packages\audioread\rawread.py", line 59, in init
self._fh = open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'D:\Voice\TEMP/20231007_154555008.wav.reformatted.wav'

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 modules/uvr5/modules.py at the uvr calls and modules/uvr5/preprocess.py at path_audio, then trace how the TEMP path is created and passed to librosa. Reproduce the failure using the reported Windows path and determine why 20231007_154555008.wav.reformatted.wav is unavailable; done means audio cleaning completes or the missing-file cause is clearly reported.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
audio-video-rtc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.