here-sdk-examples icon indicating copy to clipboard operation
here-sdk-examples copied to clipboard

Bug: Some voice_assets are not loaded correctly.

Open StefanTiess opened this issue 3 years ago • 5 comments

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

StefanTiess avatar Oct 11 '22 16:10 StefanTiess

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.

HERE-SDK-Support-Team avatar Oct 12 '22 13:10 HERE-SDK-Support-Team

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.

StefanTiess avatar Oct 12 '22 14:10 StefanTiess

Reopened, we will try to look into this in ticket #15015.

HERE-SDK-Support-Team avatar Oct 17 '22 08:10 HERE-SDK-Support-Team

@StefanTiess could you please share a usage example? Do you set the language before the start of navigation or after?

devcooch avatar Oct 19 '22 08:10 devcooch

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.

StefanTiess avatar Oct 19 '22 12:10 StefanTiess

Do you use Flutter SDK or Android SDK?

devcooch avatar Oct 19 '22 21:10 devcooch

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: @.***>

StefanTiess avatar Oct 19 '22 21:10 StefanTiess

Issue seems to be resolved in 4.12.9

StefanTiess avatar Oct 28 '22 09:10 StefanTiess