rhasspy / piper

A fast, local neural text to speech system
https://rhasspy.github.io/piper-samples/
MIT License
6.68k stars 489 forks source link

OSError: [Errno 116] Stale file handle #592

Open siddhsql opened 2 months ago

siddhsql commented 2 months ago

Has anyone seen this error when trying to run:

$ python3 -m piper_train.preprocess   --language en-us   --input-dir /path/to/input   --output-dir /path/to/output   --dataset-format ljspeech   --single-speaker   --sample-rate 22050
ERROR:preprocess:Failed to process utterance: Utterance(text='Baking is very good for focusing the mind because it often relies on very exact measurements.', audio_path=PosixPath('/home/ubuntu/xxx/data/xxx/wav/0000000001_0300000050_General/0000000002.wav'), speaker=None, speaker_id=None, phonemes=['b', 'ˈ', 'e', 'ɪ', 'k', 'ɪ', 'ŋ', ' ', 'ɪ', 'z', ' ', 'v', 'ˈ', 'ɛ', 'ɹ', 'i', ' ', 'ɡ', 'ˈ', 'ʊ', 'd', ' ', 'f', 'ɔ', 'ː', 'ɹ', ' ', 'f', 'ˈ', 'o', 'ʊ', 'k', 'ə', 's', 'ɪ', 'ŋ', ' ', 'ð', 'ə', ' ', 'm', 'ˈ', 'a', 'ɪ', 'n', 'd', ' ', 'b', 'ɪ', 'k', 'ˈ', 'ʌ', 'z', ' ', 'ɪ', 'ɾ', ' ', 'ˈ', 'ɔ', 'f', 'ə', 'n', ' ', 'ɹ', 'ᵻ', 'l', 'ˈ', 'a', 'ɪ', 'z', ' ', 'ˌ', 'ɔ', 'n', ' ', 'v', 'ˈ', 'ɛ', 'ɹ', 'i', ' ', 'ɛ', 'ɡ', 'z', 'ˈ', 'æ', 'k', 't', ' ', 'm', 'ˈ', 'ɛ', 'ʒ', 'ɚ', 'm', 'ə', 'n', 't', 's', '.'], phoneme_ids=[1, 0, 15, 0, 120, 0, 18, 0, 74, 0, 23, 0, 74, 0, 44, 0, 3, 0, 74, 0, 38, 0, 3, 0, 34, 0, 120, 0, 61, 0, 88, 0, 21, 0, 3, 0, 66, 0, 120, 0, 100, 0, 17, 0, 3, 0, 19, 0, 54, 0, 122, 0, 88, 0, 3, 0, 19, 0, 120, 0, 27, 0, 100, 0, 23, 0, 59, 0, 31, 0, 74, 0, 44, 0, 3, 0, 41, 0, 59, 0, 3, 0, 25, 0, 120, 0, 14, 0, 74, 0, 26, 0, 17, 0, 3, 0, 15, 0, 74, 0, 23, 0, 120, 0, 102, 0, 38, 0, 3, 0, 74, 0, 92, 0, 3, 0, 120, 0, 54, 0, 19, 0, 59, 0, 26, 0, 3, 0, 88, 0, 128, 0, 24, 0, 120, 0, 14, 0, 74, 0, 38, 0, 3, 0, 121, 0, 54, 0, 26, 0, 3, 0, 34, 0, 120, 0, 61, 0, 88, 0, 21, 0, 3, 0, 61, 0, 66, 0, 38, 0, 120, 0, 39, 0, 23, 0, 32, 0, 3, 0, 25, 0, 120, 0, 61, 0, 108, 0, 60, 0, 25, 0, 59, 0, 26, 0, 32, 0, 31, 0, 10, 0, 2], audio_norm_path=None, audio_spec_path=None, missing_phonemes=Counter())
Traceback (most recent call last):
  File "/home/ubuntu/xxx/piper/src/python/piper_train/preprocess.py", line 315, in phonemize_batch_espeak
    utt.audio_norm_path, utt.audio_spec_path = cache_norm_audio(
  File "/home/ubuntu/xxx/piper/src/python/piper_train/norm_audio/__init__.py", line 52, in cache_norm_audio
    audio_16khz, _sr = librosa.load(path=audio_path, sr=vad_sample_rate)
  File "/home/ubuntu/xxx/piper/.venv/lib/python3.10/site-packages/librosa/core/audio.py", line 190, in load
    y = to_mono(y)
  File "/home/ubuntu/xxx/piper/.venv/lib/python3.10/site-packages/librosa/core/audio.py", line 505, in to_mono
    util.valid_audio(y, mono=False)
  File "/home/ubuntu/xxx/piper/.venv/lib/python3.10/site-packages/lazy_loader/__init__.py", line 82, in __getattr__
    submod = importlib.import_module(submod_path)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/ubuntu/xxx/piper/.venv/lib/python3.10/site-packages/librosa/util/utils.py", line 2507, in <module>
    def _phasor_angles(x) -> np.complex_:  # pragma: no cover
  File "/home/ubuntu/xxx/piper/.venv/lib/python3.10/site-packages/numba/np/ufunc/decorators.py", line 131, in wrap
    vec.add(sig)
  File "/home/ubuntu/xxx/piper/.venv/lib/python3.10/site-packages/numba/np/ufunc/dufunc.py", line 272, in add
    return self._compile_for_argtys(args, return_type)
  File "/home/ubuntu/xxx/piper/.venv/lib/python3.10/site-packages/numba/core/compiler_lock.py", line 35, in _acquire_compile_lock
    return func(*args, **kwargs)
  File "/home/ubuntu/xxx/piper/.venv/lib/python3.10/site-packages/numba/np/ufunc/dufunc.py", line 346, in _compile_for_argtys
    cres, argtys, return_type = ufuncbuilder._compile_element_wise_function(
  File "/home/ubuntu/xxx/piper/.venv/lib/python3.10/site-packages/numba/np/ufunc/ufuncbuilder.py", line 175, in _compile_element_wise_function
    cres = nb_func.compile(sig, **targetoptions)
  File "/home/ubuntu/xxx/piper/.venv/lib/python3.10/site-packages/numba/np/ufunc/ufuncbuilder.py", line 123, in compile
    return self._compile_core(sig, flags, locals)
  File "/home/ubuntu/xxx/piper/.venv/lib/python3.10/site-packages/numba/np/ufunc/ufuncbuilder.py", line 150, in _compile_core
    cres = self.cache.load_overload(sig, targetctx)
  File "/home/ubuntu/xxx/piper/.venv/lib/python3.10/site-packages/numba/core/caching.py", line 635, in load_overload
    return self._load_overload(sig, target_context)
  File "/home/ubuntu/xxx/piper/.venv/lib/python3.10/site-packages/numba/core/caching.py", line 642, in _load_overload
    data = self._cache_file.load(key)
  File "/home/ubuntu/xxx/piper/.venv/lib/python3.10/site-packages/numba/core/caching.py", line 485, in load
    overloads = self._load_index()
  File "/home/ubuntu/xxx/piper/.venv/lib/python3.10/site-packages/numba/core/caching.py", line 502, in _load_index
    version = pickle.load(f)
OSError: [Errno 116] Stale file handle