I am calling the Voice.getName()
method like so:
Set<Voice> voices = tts.getVoices();
String name = voice.getName();
This returns code names rather than friendly display names. What I want is a display name, but there doesn't seem to be any way to get this.
Is it possible to translate the codes into something meaningful to create user friendly names? And to eliminate duplicates? A lot sound similar - but just a little bit different.
These are some codes returned for English UK:
en-GB-language
en-gb-x-rjs-local
en-gb-x-rjs-network
en-gb-x-fis-local
en-gb-x-fis-network
en-gb-x-fis#female_1-local
en-gb-x-rjs#female_1-local
en-gb-x-rjs#female_2-local
en-gb-x-fis#female_2-local
en-gb-x-rjs#male_1-local
My thoughts so far:
- Local and network do mean what you would think. However it is not clear if they are two versions of the same voice, as they sound a bit different (not very different though).
- The
rjs
andfis
are repeated a lot, and apply to both male and female, but only for UK English. It appears that each language has one or two different sets of 3 letter initials - maybe it is a region code. - You might think female1 and female2 would be different voice talent, but they appear to be just very slightly different expressiveness.
- I think
en-gb-x-rjs#male_1-local
anden-gb-x-rjs-local
are identical - All return same Quality of 400.
Does anyone have a better understanding of these?