bootphon / phonemizer

Simple text to phones converter for multiple languages

Home Page:https://bootphon.github.io/phonemizer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

ezra-ch opened this issue · comments

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)```

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