You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Spoken instructions should automatically match the route response’s locale #933
PollyVoiceController and RouteVoiceController both use Locale.preferredLocalLanguageCountryCode to choose the speech synthesis voice. This is usually correct, but if the developer has customized the route response’s locale by setting RouteOptions.locale, then instructions written in one language could potentially be read aloud in a different language, probably to humorous effect. Instead, the voice controllers should get their locales from RouteOptions.locale, which will help to ensure a matching language.
Activity
1ec5 commentedon Dec 16, 2017
#617 is replacing PollyVoiceController with MapboxVoiceController, which will correctly match the route response’s locale.
bsudekum commentedon Dec 19, 2017
@1ec5 is it worth fixing this while we work on #617?
1ec5 commentedon Dec 20, 2017
Yes, #617 can address the Polly side of the bug, but the fix needs to be general enough to also address the AVFoundation fallback.
bsudekum commentedon Jan 22, 2018
Done in 1a161fd
bsudekum commentedon Feb 16, 2018
This is was added in #617