You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to set up and run the Real-Time Voice Cloning (German) project on my system, but I keep encountering a FileNotFoundError related to missing audio files in the samples directory. Here is the exact error message I am receiving:
Traceback (most recent call last):
File "C:\Users\Utente\miniconda3\envs\rtvc\lib\site-packages\librosa\core\audio.py", line 149, in load
with sf.SoundFile(path) as sf_desc:
File "C:\Users\Utente\miniconda3\envs\rtvc\lib\site-packages\soundfile.py", line 629, in __init__
self._file = self._open(file, mode_int, closefd)
File "C:\Users\Utente\miniconda3\envs\rtvc\lib\site-packages\soundfile.py", line 1183, in _open
_error_check(_snd.sf_error(file_ptr),
File "C:\Users\Utente\miniconda3\envs\rtvc\lib\site-packages\soundfile.py", line 1357, in _error_check
raise RuntimeError(prefix + _ffi.string(err_str).decode('utf-8', 'replace'))
RuntimeError: Error opening 'samples/6829_00000.mp3': System error.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "demo_toolbox.py", line 43, in <module>
Toolbox(**vars(args))
File "C:\Users\Utente\Real-Time-Voice-Cloning-German\toolbox\__init__.py", line 49, in __init__
librosa.load("samples/6829_00000.mp3")
File "C:\Users\Utente\miniconda3\envs\rtvc\lib\site-packages\librosa\core\audio.py", line 166, in load
y, sr_native = __audioread_load(path, offset, duration, dtype)
File "C:\Users\Utente\miniconda3\envs\rtvc\lib\site-packages\librosa\core\audio.py", line 190, in __audioread_load
with audioread.audio_open(path) as input_file:
File "C:\Users\Utente\miniconda3\envs\rtvc\lib\site-packages\audioread\__init__.py", line 111, in audio_open
return BackendClass(path)
File "C:\Users\Utente\miniconda3\envs\rtvc\lib\site-packages\audioread\rawread.py", line 62, in __init__
self._fh = open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'samples/6829_00000.mp3'
Steps to Reproduce:
I installed the project following the instructions and set up the Conda environment using environment.yml.
I downloaded the pre-trained models from this page and placed them in the appropriate subfolders as per the instructions:
encoder/saved_models/encoder.pt
synthesizer/saved_models/synthesizer.pt
vocoder/saved_models/vocoder.pt
I tried running demo_toolbox.py.
The script fails with the above error indicating a missing file (samples/6829_00000.mp3).
What I’ve Tried:
I’ve checked the samples directory, but the file 6829_00000.mp3 doesn’t exist.
I attempted using a different .mp3 file, but I am not sure what format or content is expected for this audio file.
I have librosa, audioread, and soundfile installed correctly, as the script falls back to audioread without issues, but I believe it’s more of a file path issue.
Searching speakers...
[]
Checking subfolders...
Found 0 wav folders
[]
Wrote 0 files.
Environment:
OS: Windows 10
Python: 3.7 (via Miniconda)
Librosa version: 0.8.0
Soundfile version: 0.10.3
Audioread version: 2.1.9
Project branch: master
Could there be an issue with the way librosa or audioread is trying to handle .mp3 files?
For the mailab_normalize_text.py script, why is it not finding any .wav files or speakers? How should the dataset be organized for this script to work correctly?
Thank you for your help!
Any guidance on how to resolve these issues would be much appreciated.
Best regards,
Francesco Feston
The text was updated successfully, but these errors were encountered:
Dear @padmalcom,
I am trying to set up and run the Real-Time Voice Cloning (German) project on my system, but I keep encountering a
FileNotFoundError
related to missing audio files in thesamples
directory. Here is the exact error message I am receiving:Steps to Reproduce:
environment.yml
.encoder/saved_models/encoder.pt
synthesizer/saved_models/synthesizer.pt
vocoder/saved_models/vocoder.pt
demo_toolbox.py
.samples/6829_00000.mp3
).What I’ve Tried:
samples
directory, but the file6829_00000.mp3
doesn’t exist..mp3
file, but I am not sure what format or content is expected for this audio file.librosa
,audioread
, andsoundfile
installed correctly, as the script falls back toaudioread
without issues, but I believe it’s more of a file path issue.Additionally, I ran the following command:
And the output was:
Environment:
Could there be an issue with the way
librosa
oraudioread
is trying to handle.mp3
files?For the
mailab_normalize_text.py
script, why is it not finding any.wav
files or speakers? How should the dataset be organized for this script to work correctly?Thank you for your help!
Any guidance on how to resolve these issues would be much appreciated.
Best regards,
Francesco Feston
The text was updated successfully, but these errors were encountered: