SKMaps Navigation Language:how 将语音从米更改为码
SKMaps Navigation Language:how to change voice from meters to yards
我的整个地图都可以使用,但我需要将语言从 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();
}
您必须在 SKNavigationSettings 对象上设置距离单位。
SKNavigationSettings navigationSettings = new SKNavigationSettings();
navigationSettings.setDistanceUnit(SKMaps.SKDistanceUnitType.DISTANCE_UNIT_MILES_YARDS);
我的整个地图都可以使用,但我需要将语言从 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();
}
您必须在 SKNavigationSettings 对象上设置距离单位。
SKNavigationSettings navigationSettings = new SKNavigationSettings();
navigationSettings.setDistanceUnit(SKMaps.SKDistanceUnitType.DISTANCE_UNIT_MILES_YARDS);