Here Sdk Navigation Sound Is Not Playing
Solution 1:
Generally, the MobileSDK by HERE is using the system TTS engine that's setup on your Android. So please make sure your Android has a TTS engine installed and set (often this is Google TTS, some OEMs don't set a engine like my Sony Z5, or some have another one, like LG with sfplus for example).
Once Android has the TTS capabilities, the flow should look like following on HERE SDK side:
- Check the already installed TTS Skins of the HERE SDK:
List localInstalledSkins = VoiceCatalog.getInstance().getLocalVoiceSkins();
If you voice you want is already downloaded locally, jump directly to 4. otherwise continue with next step.
- Get the voice catalog from the HERE Servers:
VoiceCatalog.getInstance().downloadCatalog(VoiceCatalog.OnDownloadDoneListener)
In the listener callback you can query the list of available language for download via:
List packages = VoiceCatalog.getInstance().getCatalogList();
- Download a VoiceSkin you wanna play:
VoiceCatalog.getInstance().downloadVoice(skin_id_from_catalog_you_want_to_use, VoiceCatalog.OnDownloadDoneListener)
Make sure the listener returns with success before you continue with next steps.
- Set the downloaded voice skin for navigation:
NavigationManager.getInstance().setVoiceSkin(VoiceCatalog.getInstance().getLocalVoiceSkin(skin_id_you_want_to_use))
- Kick off guidance
You can get my full project source from the HERE servers: http://tcs.ext.here.com/sdk_examples/TtsAndNavigation.zip
Post a Comment for "Here Sdk Navigation Sound Is Not Playing"