bootphon / phonemizer

Simple text to phones converter for multiple languages
https://bootphon.github.io/phonemizer/
GNU General Public License v3.0
1.15k stars 163 forks source link

[windows fix]for my windows brothers who have that espeak not found when running the inference demo, install espeak-ng then #161

Closed ezra-ch closed 7 months ago

ezra-ch commented 7 months ago

For my windows brethren who have that espeak not found error when running the inference code, install espeak-ng then just add the following.


from phonemizer.backend.espeak.wrapper import EspeakWrapper

EspeakWrapper.set_library('C:\Program Files\eSpeak NG\libespeak-ng.dll')
# load phonemizer
import phonemizer
global_phonemizer = phonemizer.backend.EspeakBackend(language='en-us', preserve_punctuation=True,  with_stress=True)```
mmmaat commented 7 months ago

Hi, thanks, this is what I recently added in the documentation