我的整个地图正在运行,但我需要将语言从en更改为en_us。我的意思是我喜欢用码和英里而不是米和公里来听所有距离。我将文件从en更改为en_us,但我仍可以以米为单位收听所有距离,而不是以码为单位。 请建议我如何解决这个问题。 谢谢。 以下是我的代码:
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();
}
答案 0 :(得分:0)
您必须在SKNavigationSettings对象上设置距离单位。
SKNavigationSettings navigationSettings = new SKNavigationSettings();
navigationSettings.setDistanceUnit(SKMaps.SKDistanceUnitType.DISTANCE_UNIT_MILES_YARDS);