Skip to content

Conversation

@thewh1teagle
Copy link

@thewh1teagle thewh1teagle commented Jan 5, 2025

Add option to use custom espeak data path
To use with https://github.com/thewh1teagle/espeakng-loader

from phonemizer.backend.espeak.wrapper import EspeakWrapper
from phonemizer import phonemize
import espeakng_loader

EspeakWrapper.set_library(espeakng_loader.get_library_path())
EspeakWrapper.set_data_path(espeakng_loader.get_data_path()) # or './espeak-ng-data' 

phonemes = phonemize('Hello')
print('Phonemes: ', phonemes)

By the way, I have to say that using attributes and static variables with the same names, like _ESPEAK_DATA_PATH, self._data_path, and data_path, is extremely confusing. I really don’t understand why this approach is used.

@Emasoft
Copy link

Emasoft commented Jan 15, 2025

please merge this

@MonolithFoundation
Copy link

Does ponemizer lib didn't maintained any longer?

I iterally got espeak lib didn't found error everytime even thought it was installed.

@thewh1teagle
Copy link
Author

Does ponemizer lib didn't maintained any longer?

I iterally got espeak lib didn't found error everytime even thought it was installed.

Search for phonemizer-fork in Github

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

Successfully merging this pull request may close these issues.

3 participants