How to change the language of the navigation voice of the HERE sdk depending on the language of the phone

362 Views Asked by At

I am using the HERE sdk to make a navigation application.

What I want to achieve is to put the language of the navigation voice in the language in which the mobile phone is, for example, if the language of your phone is in English, the instructions say them in English, if it is in French, the voice is in French. I have researched the HERE sdk documentation but this is the only thing I have found and I can't find any way to do it.

Any ideas?

1

There are 1 best solutions below

0
On

Before download you can use VoicePackage.isTts(), it should be false(it means that it does not require TTS engine) or after voice package has been downloaded check if voice skin output is AUDIO and not TTS:

List<VoiceSkin> skins = VoiceCatalog.getLocalVoiceSkins();// in loop
OutputType type = skin.getOutputType(); // should be AUDIO.'

https://developer.here.com/documentation/android-premium/3.18/api_reference_java/index.html?com%2Fhere%2Fandroid%2Fmpa%2Fguidance%2FVoicePackage.html

supported voices :

https://developer.here.com/documentation/android-premium/3.18/dev_guide/topics/coverage-navigation-voices.html