mesing icon indicating copy to clipboard operation
mesing copied to clipboard

Any other voices?

Open etayluz opened this issue 3 years ago • 1 comments

Are there any other voices that are available? I want to use this for a project in Hebrew that has additional syllables that English does not have - like the guttural "cha". As was as the "tza" in pizza and other sounds that don't exist in English.

Is there a way I can somehow add more syllable sounds?

etayluz avatar May 25 '22 20:05 etayluz

Hey! I just added the rest of the original mespeak voices in commit e43ed7e on the feature-additional-voices branch.

You can change the voice in line 408 of mesing.js: https://github.com/usdivad/mesing/blob/e43ed7ee2852a44153ef94118628c79c1e6f8ace/js/src/mesing.js#L408

by just putting in the file path to the appropriate voice. For example, to use the French voice, you can do:

meSpeak.loadVoice("/js/lib/mespeak/voices/fr.json", function() {

I tried out a couple of languages and they're definitely distinguishable from the en-us voice, although the vocoder obscures the articulation somewhat.

Ideally the voice/language would be part of the meSing.Singer parameters, and maybe a simple dropdown UI in the demo page so you can choose different voices. However, that requires some restructuring of the way the voices are loaded (alas, hindsight is 20/20), and I'm not sure when exactly I'll be able to get around to that, so I wanted to at least comment here with something usable (albeit hacky) in the meantime.

Let me know if this helps -- also, if you (or anyone else) feel up to implementing that parameterization (and optionally the demo UI), I'd certainly welcome that!

usdivad avatar Jun 30 '22 05:06 usdivad