here-sdk-examples
here-sdk-examples copied to clipboard
Bug: Some voice_assets are not loaded correctly.
Hi, are you aware of an Issue for Voice Guidance in SDK 4.12.7 ?: Some Languages, eg LanguageCode.DE_DE, are failing to load from the assets folder.
Even though the supportedVoiceSkins contains the Language Code in question, whenever a Maneuver comes up I get the following Error in the Logs:
[ERROR] notification_generation - get_voice_package_output( ) - Error generating notification AndroidAssetsLoader *** Failed to load asset stream voice_assets/voice_package_en-US/translations/de-DE/templates.lua java.io.FileNotFoundException: voice_assets/voice_package_en-US/translations/de-DE/templates.lua at android.content.res.AssetManager.nativeOpenAsset(Native Method)
Note: This issue only occurs for some LanguageCodes, in fact I was only able to reproduce it with German, but I only tested a handful of languages. Also the voice_assets folder in the aar contains the voice_package_de-DE
It seems you are usingvoice_assets/voice_package_en-US/with a "de-DE" variant. In that case, the device will fallback to German. The HERE SDK contains no support for German(US) - this can happen when a device is set to English, but is used in Germany. If you switch the device language properly to German, the error log should disappear. If this does not answer this issue, please reopen. Thanks.
Hi datasun, I am not sure how to prevent this: The language code passed to the ManeuverNotificationOptions in the visualNavigator is DE_DE. Also the Phone is set to German in Germany (Locale is de_DE). As far as I know this is the only way to assign the language of voice instructions. Still it tries to look for the voice package as a variant for en_US instead of the voice_package_de_DE that is installed. Also, as I said, it works fine for other languages, eg Spanish.
Reopened, we will try to look into this in ticket #15015.
@StefanTiess could you please share a usage example? Do you set the language before the start of navigation or after?
Hi @devcooch . I set the language for the ManeuverNotificationOptions and tts before I set the Route to the visual navigator and start Visual Navigation.
Also, I found a workaround by reverting the SDK Version to 4.12.5.0 All later SDK Versions are lacking voice support and showing the mentioned error. My previous assesment that it depends on language is wrong, as I was testing on different devices. It either works for all languages or only for en_US.
Do you use Flutter SDK or Android SDK?
Android SDK.
Dmitry Kochkin @.***> schrieb am Mi., 19. Okt. 2022, 23:42:
Do you use Flutter SDK or Android SDK?
— Reply to this email directly, view it on GitHub https://github.com/heremaps/here-sdk-examples/issues/181#issuecomment-1284604783, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACMQ2ZKPCEIQR6HNBGVNCULWEBTNTANCNFSM6AAAAAARCO4EQM . You are receiving this because you were mentioned.Message ID: @.***>
Issue seems to be resolved in 4.12.9