Skip to content

Conversation

@gerelef
Copy link

@gerelef gerelef commented Jan 24, 2025

... heavily based on work from Dave1475 issue #198

@gerelef
Copy link
Author

gerelef commented Jan 24, 2025

After some testing, this solved the problems I had, referenced in the issue.

An alternative solution would be to fully uninitialize any resources used. However, the current solution should be considerably faster than the alternative.

@thewh1teagle
Copy link

I'm surprised that it works really slow now. I just discovered that it initiate espeak-ng every call to phonemize()!

@thewh1teagle
Copy link

fyi phonemizer-fork package integrated it
https://github.com/thewh1teagle/phonemizer-fork

Before

Phonemes: həloʊ , Speed: 0.62 phonemes/s
Phonemes: həloʊ , Speed: 0.59 phonemes/s

After

Phonemes: həloʊ , Speed: 54709.29 phonemes/s
Phonemes: həloʊ , Speed: 54709.29 phonemes/s

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.

2 participants