M4rtinK / modrana

ModRana is a flexible GPS navigation system for mobile devices. This is the main upstream modRana source code repository - waiting for your pull requests & patches! :)
www.modrana.org
GNU General Public License v3.0
66 stars 21 forks source link

Improve local name vocalization #239

Open M4rtinK opened 6 years ago

M4rtinK commented 6 years ago

The turn by turn directions often contain local names and it is very easy to have local names originating from a different language than the directions (English directions and Czech local names for example).

It would be good to set the TTS engine to a language corresponding to the local names (at least espeak should be able to do that), so that their pronunciation is not destroyed by wrong language.

The problem is, that in some cases we are getting an opaque string as directions and it might not be apparent what of that is local names. We might also don't know the proper language for the local names. And it can happen a single turn by turn navigation session might have local names in different languages (crossing national or regional borders).

There are a couple things we can try. If we can differentiate local names from the rest of the directions, we can let the user set a language for them. Not very flexible, but should work.

If we can also get information about the corresponding local language for the local names, no manual configuration is needed & border crossing is handled as well.