KokoroSharp icon indicating copy to clipboard operation
KokoroSharp copied to clipboard

Migrating away from espeak-ng?

Open ebynakis opened this issue 1 year ago • 4 comments

I've looked a bit into the code and saw that u are only using epeak-ng for phonemization. This doesn't seem to be exactly cross-platform. Maybe u can use something like this? https://github.com/Mobile-Artificial-Intelligence/babylon.cpp which has binaries for more platforms?

ebynakis avatar Apr 15 '25 16:04 ebynakis

Thanks for the suggestion, the library looks interesting. I admiteddly don't have much time for KokoroSharp lately so unlikely to make a big change like this anytime soon. That said, I'd like to keep the issue open for a good overview when I'm back to it.

Although, truth is that I'm more leaning towards a C# port of misaki that will not require any other dependencies. I've been in contact with some individuals that were working on it, so time, effort, and interest from individuals will tell ^^

Lyrcaxis avatar Apr 21 '25 13:04 Lyrcaxis

I've seen the discussion on reddit regarding misaki :) That seems to be the best approach, true Also, can u check the binaries repo? I ve added a PR for android binaries generation for espeak-ng. Thanks!

ebynakis avatar Apr 21 '25 14:04 ebynakis

@ebynakis I did a start on migrating away from espeak-ng -- switched phonemization to asus4's impl of a standalone G2P.

Feel free to take a look! More info in this post: https://github.com/Lyrcaxis/KokoroSharp/issues/10#issuecomment-3362089652

Lyrcaxis avatar Oct 06 '25 12:10 Lyrcaxis

I've had a peek into the G2P migration... I've noticed a small section related to converting numbers to words, as one 7 => "seven"

I would suggest you to use Humanizer which has in built support for converting numbers to words for many languages. I also has other useful methods to make data types to be human readable (like date time , currencies and so on)

vpenades avatar Oct 07 '25 13:10 vpenades