[8.0.0]调整TTS语音+下架V2N绿波通行

This commit is contained in:
xuxinchao
2025-04-24 11:21:14 +08:00
parent 400154bf38
commit 5d12752125
7 changed files with 104 additions and 133 deletions

View File

@@ -227,16 +227,17 @@ class RoadCrossRoamView @JvmOverloads constructor(
}
isShow = true
//播放语音
val dis = CallerMapRoadListenerManager.getStopLineDistance()?.toInt() ?: 0
// val dis = CallerMapRoadListenerManager.getStopLineDistance()?.toInt() ?: 0
if (AppIdentityModeUtils.isDriver(FunctionBuildConfig.appIdentityMode)) {
var disStr = "前方即将通过路口,${
SkinResources.getInstance().getString(R.string.operation_platform_name)
}为您提供路口全息影像助力出行"
if (dis >= 80) {
disStr = "前方${dis}米将通过路口,${
SkinResources.getInstance().getString(R.string.operation_platform_name)
}为您提供路口全息影像助力出行"
}
// var disStr = "前方即将通过路口,${
// SkinResources.getInstance().getString(R.string.operation_platform_name)
// }为您提供路口全息影像,助力出行"
// if (dis >= 80) {
// disStr = "前方${dis}米将通过路口,${
// SkinResources.getInstance().getString(R.string.operation_platform_name)
// }为您提供路口全息影像,助力出行"
// }
val disStr = "为您提供路口全息影像,助力出行"
AIAssist.getInstance(context).speakTTSVoiceWithLevel(disStr, AIAssist.NEW_LEVEL_2)
}
CallerHmiViewControlListenerManager.invokeV2XEvent(View.VISIBLE, TAG)