Scout Android SDK:支持多语言仅适用于英语

时间:2016-02-15 12:33:41

标签: android maps voice skmaps

我正在使用Android Skobbler SDK。我希望路由建议在多语言中工作。我使用advisor_configfiles和sound_files文件夹将所有语言放入SKMaps / Advisor / Languages。然后在我的代码中我有:

final SKAdvisorSettings advisorSettings = initMapSettings.getAdvisorSettings();
    advisorSettings.setAdvisorConfigPath(mapResourcesPath +"/Advisor");
    advisorSettings.setResourcePath(mapResourcesPath +"/Advisor/Languages");
    advisorSettings.setLanguage(SKAdvisorSettings.SKAdvisorLanguage.LANGUAGE_ES);
    advisorSettings.setAdvisorVoice("es");
    initMapSettings.setAdvisorSettings(advisorSettings);

使用这段代码,我应该听到西班牙语的说明,但它不起作用。如果我更改并输入此代码:

final SKAdvisorSettings advisorSettings = initMapSettings.getAdvisorSettings();
    advisorSettings.setAdvisorConfigPath(mapResourcesPath +"/Advisor");
    advisorSettings.setResourcePath(mapResourcesPath +"/Advisor/Languages");
    advisorSettings.setLanguage(SKAdvisorSettings.SKAdvisorLanguage.LANGUAGE_EN);
    advisorSettings.setAdvisorVoice("en");
    initMapSettings.setAdvisorSettings(advisorSettings);

我可以听到英文说明

有人能帮助我吗?

此致

1 个答案:

答案 0 :(得分:1)

SKAdvisorSettings class中你有SKAdvisorType枚举,它允许你选择你想要使用哪一个。要更改SDK导航组件使用的音频顾问程序设置,请从SKRouteManager类调用setAudioAdvisorSettings方法。请参阅文档:http://developer.skobbler.com/getting-started/android#sec017