FlorianEagox / WeeaBlind

A program to dub non-english media with modern AI speech synthesis, diarization, and voice cloning!
https://tessapainter.com/project/WeeaBlind
283 stars 26 forks source link

error espeak #6

Closed Alfa16bravo closed 6 months ago

Alfa16bravo commented 1 year ago

hello, I get an error for espeak, yet all the dependencies are downloaded, the virtual environment is ok.

weeablind\tabs\ConfigureVoiceTab.py", line 1, in import app_state File "C:\Users\ravai\Desktop\dubbing\weeablind\app_state.py", line 5, in speakers[0].set_voice_params('tts_models/en/vctk/vits', 'p326') # p340 File "C:\Users\ravai\Desktop\dubbing\weeablind\Voice.py", line 103, in set_voice_params self.voice.load_tts_model_by_name(voice) File "C:\Users\ravai\Desktop\dubbing\weeablind\venv\lib\site-packages\TTS\api.py", line 185, in load_tts_model_by_name self.synthesizer = Synthesizer( File "C:\Users\ravai\Desktop\dubbing\weeablind\venv\lib\site-packages\TTS\utils\synthesizer.py", line 93, in init self._load_tts(tts_checkpoint, tts_config_path, use_cuda) File "C:\Users\ravai\Desktop\dubbing\weeablind\venv\lib\site-packages\TTS\utils\synthesizer.py", line 187, in _load_tts self.tts_model = setup_tts_model(config=self.tts_config) File "C:\Users\ravai\Desktop\dubbing\weeablind\venv\lib\site-packages\TTS\tts\models__init.py", line 13, in setup_model model = MyModel.init_from_config(config=config, samples=samples) File "C:\Users\ravai\Desktop\dubbing\weeablind\venv\lib\site-packages\TTS\tts\models\vits.py", line 1796, in init_from_config tokenizer, new_config = TTSTokenizer.init_from_config(config) File "C:\Users\ravai\Desktop\dubbing\weeablind\venv\lib\site-packages\TTS\tts\utils\text\tokenizer.py", line 198, in init_from_config phonemizer = get_phonemizer_by_name(config.phonemizer, **phonemizer_kwargs) File "C:\Users\ravai\Desktop\dubbing\weeablind\venv\lib\site-packages\TTS\tts\utils\text\phonemizers\init.py", line 60, in get_phonemizer_by_name return ESpeak(**kwargs) File "C:\Users\ravai\Desktop\dubbing\weeablind\venv\lib\site-packages\TTS\tts\utils\text\phonemizers\espeak_wrapper.py", line 114, in init__ raise Exception(" [!] No espeak backend found. Install espeak-ng or espeak to your system.") Exception: [!] No espeak backend found. Install espeak-ng or espeak to your system.

FlorianEagox commented 1 year ago

Hi there! Some other folks arrive in the same issue. First of all, has espeak been added to your PATH system environment variable? The installer won't do this for you, so you have to do it yourself. If you just run the espeak "hello, world" command from any directory, it should work. Also, which version of python are you on?