Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [Errno 2] No such file or directory: 'samples/6829_00000.mp3' #27

Open
francescofeston opened this issue Sep 30, 2024 · 0 comments

Comments

@francescofeston
Copy link

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 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:

  1. I installed the project following the instructions and set up the Conda environment using environment.yml.
  2. 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
  3. I tried running demo_toolbox.py.
  4. 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.

Additionally, I ran the following command:

python mailab_normalize_text.py --datasets_root de_DE

And the output was:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant