Describe the feature
The current espeakng-loader mechanism for shipping espeak-ng doesn't play nicely with packaging on distros where it is expected to use the system packaging ( e.g. NixOS ).
I think this can be easily achieved by conditionally importing espeakng_loader only when it is installed and shorting out the Tokenizer init method if it is not present. In this case with a vanilla phonemizer install, I believe it would take care of loading the library.
Describe the feature
The current
espeakng-loadermechanism for shippingespeak-ngdoesn't play nicely with packaging on distros where it is expected to use the system packaging ( e.g. NixOS ).I think this can be easily achieved by conditionally importing
espeakng_loaderonly when it is installed and shorting out theTokenizerinit method if it is not present. In this case with a vanillaphonemizerinstall, I believe it would take care of loading the library.