Alpaca icon indicating copy to clipboard operation
Alpaca copied to clipboard

Add Japanese and Chinese to the "Default Text to Speech Voice" options

Open Radkus-Maximus1 opened this issue 5 months ago • 5 comments

Is your feature request related to a problem? Please describe.

I am trying to learn Japanese with AI and would like to be able to hear what is being typed out.

Describe the solution you'd like

Japanese and Chinese TTS added as default voices in the Preferences window.

Describe alternatives you've considered

After a quick surface level search of other AIs, I was not able to find one that allowed outputted text to be immediately dictated. Not to mention they are all online tools that cannot be run locally.

Radkus-Maximus1 avatar Jul 20 '25 03:07 Radkus-Maximus1

I noticed in the source code that there is a small amount of work already done for adding Chinese and Japanese TTS. I must admit, I don't have any experience with creating gnome applications, nor have I contributed to open source before. However, if it would bring the feature faster, I would love to try my hand at this one!

Radkus-Maximus1 avatar Jul 20 '25 03:07 Radkus-Maximus1

Hi thanks for the interest, in all honesty 99% of the work is already done, I just need to add the dependency for the Flatpak version and uncomment all the voices names in the constants.py file

I'll have to think about it, I don't know how much space it would take to add those voices.

Jeffser avatar Jul 20 '25 23:07 Jeffser

Maybe this isn't the best UX choice, but if package size is a problem, would it be possible to make it an additional prompted download like is done with the voice recognition?

Radkus-Maximus1 avatar Jul 21 '25 00:07 Radkus-Maximus1

I've been trying to install the Japanese voices but they don't seem to work.

About making them optional, the models themselves can be handled the same way as any other language, the problem is that Chinese and Japanese text needs to be handled by different libraries for it to work with Kokoro.

Jeffser avatar Jul 21 '25 01:07 Jeffser

Interesting... Well, I'll wait for your approval before forking. Good luck with the debugging!

Radkus-Maximus1 avatar Jul 21 '25 02:07 Radkus-Maximus1