osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.73k stars 1.03k forks source link

Wrong pronunciation of names during the navigation #13080

Open LorenzoStucchi opened 3 years ago

LorenzoStucchi commented 3 years ago

🚀 feature request

Description

The pronunciation during the navigation should prefer the pronunciation indicated in the tag name:pronunciation when present to prevent errors from particular spelling.

For example, the pronunciation of "Roja" in this relation

vshcherb commented 3 years ago

The link you've sent most likely is not pronounced. This issue is hard to fix anyway cause I'm not sure TTS takes any suggestions how to pronounce words

sonora commented 3 years ago

In deed, I would not know how to fix this technically.

hayvan96 commented 2 years ago

Hi, Currently in Finland, TTS set to my native language (French), street names are pronounced in French (and it takes me time to understand the Finnish name). Suggestion : is it possible to keep TTS and grammar to the option set in settings (default, French) but use the local TTS language for the street names? The Finnish TTS files are installed on my phone. The problem is the same as the one of OP : there's no reason the TTS engine set for the app (usually the default langage of the phone) can correctly pronounce local street names (and French is especially not adapted to "read" English, German or Finnish lol).

sonora commented 2 years ago

It's possible: You can copy your French OsmAnd TTS configuration fr_tts.js to the Finnish folder (fi-tts) and give it the name of the Finnish config file fi_tts.js . OsmAnd would then correctly pronounce Finnish street names, and would use French wording and grammar for the turn instructions. But it would of course pronounce all turn instructions with Finnish accent.

The point is, I am currently not aware how to change TTS language on the fly so that commands are pronounced using one accent and street names using another.

scaidermern commented 2 years ago

How is this done in other navigation apps? Do they all suffer from the same problem?

vshcherb commented 2 years ago

Probably ... Or they use specialized TTS engine that is not provided by API

hayvan96 commented 2 years ago

Nokia Maps used to do this correctly, but it stopped working when they became HERE.

In terms of API, is it possible to A. Use language 1 for the grammar and instructions B. Use langage 2 only for the pronunciation of the street names Provided that both TTS language engines are installed?