0
我整個地圖工作,但我需要改變從en到en_us的語言。我的意思是我喜歡以碼和英里而不是米和公里來聽所有的距離。我將文件從en更改爲en_us,但我仍然可以以米爲單位聽所有距離而不是碼。 請告訴我如何解決這個問題。 謝謝。 下面是我的代碼:SKMaps導航語言:如何改變從米到碼的聲音
private void StartVoiceNavigation(MapAdvices currentMapAdvices) {
final SKAdvisorSettings advisorSettings = new SKAdvisorSettings();
advisorSettings.setLanguage(SKAdvisorSettings.SKAdvisorLanguage.LANGUAGE_EN_US);
advisorSettings.setAdvisorConfigPath(app.getMapResourcesDirPath() + "/Advisor");
advisorSettings.setResourcePath(app.getMapResourcesDirPath() + "/Advisor/Languages");
advisorSettings.setAdvisorVoice("en_us");
switch (currentMapAdvices) {
case TEXT_TO_SPEECH:
advisorSettings.setAdvisorType(SKAdvisorSettings.SKAdvisorType.TEXT_TO_SPEECH);
break;
}
SKRouteManager.getInstance().setAdvisorSettings(advisorSettings);
launchNavigation();
}
請分享您的代碼 – Jadeye