[8.0.0]TTS内容修改-V2I不分

This commit is contained in:
xuxinchao
2025-04-23 18:03:51 +08:00
parent 3d7792691a
commit 400154bf38
3 changed files with 30 additions and 30 deletions

View File

@@ -631,9 +631,9 @@ class MogoObuDcCombineManager private constructor() : IMoGoObuWarningRsiListener
if (currentSpeed > 0) { if (currentSpeed > 0) {
ttsContentNew = ttsContentNew =
if ((currentSpeed * 3.6).roundToInt() in (minSpeedTemp + 1) until maxSpeedTemp) { if ((currentSpeed * 3.6).roundToInt() in (minSpeedTemp + 1) until maxSpeedTemp) {
"${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,推荐保持当前车速通过路口" "建议保持当前车速通过路口"
} else { } else {
"${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,推荐保持车速$minSpeedTemp - $maxSpeedTemp KM/H通过路口" "推荐保持车速10-30KM/H通过路口"
} }
alertContentNew = "推荐车速$minSpeedTemp - $maxSpeedTemp KM/H" alertContentNew = "推荐车速$minSpeedTemp - $maxSpeedTemp KM/H"
} }

View File

@@ -1113,9 +1113,9 @@ class MogoPrivateObuNewManager private constructor() : OnUpgradeListener {
if (currentSpeed > 0) { if (currentSpeed > 0) {
ttsContentNew = ttsContentNew =
if ((currentSpeed * 3.6).roundToInt() in (minSpeedTemp + 1) until maxSpeedTemp) { if ((currentSpeed * 3.6).roundToInt() in (minSpeedTemp + 1) until maxSpeedTemp) {
"${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,推荐保持当前车速通过路口" "建议保持当前车速通过路口"
} else { } else {
"${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,推荐保持车速$minSpeedTemp - $maxSpeedTemp KM/H通过路口" "推荐保持车速10-30KM/H通过路口"
} }
alertContentNew = "推荐车速$minSpeedTemp - $maxSpeedTemp KM/H" alertContentNew = "推荐车速$minSpeedTemp - $maxSpeedTemp KM/H"
} }

View File

@@ -254,7 +254,7 @@ enum class EventTypeEnumNew(
"闯红灯预警", "闯红灯预警",
poiTypeSrcVr = R.drawable.icon_warning_v2x_traffic_lights_red, poiTypeSrcVr = R.drawable.icon_warning_v2x_traffic_lights_red,
content = "前方路口有闯红灯风险", content = "前方路口有闯红灯风险",
tts = "${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,前方路口闯红灯风险,建议降低车速" tts = "路口闯红灯风险,建议降低车速"
), ),
TYPE_USECASE_ID_IVP_GREEN( TYPE_USECASE_ID_IVP_GREEN(
@@ -314,7 +314,7 @@ enum class EventTypeEnumNew(
"超速", "超速",
poiTypeSrcVr = R.drawable.icon_warning_v2x_over_speed, poiTypeSrcVr = R.drawable.icon_warning_v2x_over_speed,
content = "当前路段限速 %s KM/H已超速", content = "当前路段限速 %s KM/H已超速",
tts = "${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,当前路段限速 %s 千米每小时,已超速" tts = "当前路段限速 %s 千米每小时,已超速"
), ),
//------------道路危险情况预警 obu end -----------> //------------道路危险情况预警 obu end ----------->
@@ -324,161 +324,161 @@ enum class EventTypeEnumNew(
"急转弯", "急转弯",
poiTypeSrcVr = R.drawable.icon_warning_v2x_turn_left_sharp, poiTypeSrcVr = R.drawable.icon_warning_v2x_turn_left_sharp,
content = "前方%s米急转弯", content = "前方%s米急转弯",
tts = "${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,前方%s米急转弯" tts = "前方%s米急转弯"
), ),
TYPE_ID_BRIDGE( TYPE_ID_BRIDGE(
8.toString(), 8.toString(),
"桥梁", "桥梁",
poiTypeSrcVr = R.drawable.icon_warning_v2x_hump_bridge, poiTypeSrcVr = R.drawable.icon_warning_v2x_hump_bridge,
content = "前方%s米桥梁", content = "前方%s米桥梁",
tts = "${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,前方%s米桥梁" tts = "前方%s米桥梁"
), ),
TYPE_ID_PEDESTRIAN( TYPE_ID_PEDESTRIAN(
10.toString(), 10.toString(),
"路人", "路人",
poiTypeSrcVr = R.drawable.icon_warning_v2x_pedestrian_crossing, poiTypeSrcVr = R.drawable.icon_warning_v2x_pedestrian_crossing,
content = "前方%s米路人", content = "前方%s米路人",
tts = "${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,前方%s米路人" tts = "前方%s米路人"
), ),
TYPE_ID_SLIPPERY_ROAD( TYPE_ID_SLIPPERY_ROAD(
17.toString(), 17.toString(),
"路滑", "路滑",
poiTypeSrcVr = R.drawable.v2x_icon_jiebing_vr, poiTypeSrcVr = R.drawable.v2x_icon_jiebing_vr,
content = "前方%s米路滑", content = "前方%s米路滑",
tts = "${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,前方%s米路滑" tts = "前方%s米路滑"
), ),
TYPE_ID_TUNNEL( TYPE_ID_TUNNEL(
21.toString(), 21.toString(),
"隧道", "隧道",
poiTypeSrcVr = R.drawable.icon_default, poiTypeSrcVr = R.drawable.icon_default,
content = "前方%s米隧道", content = "前方%s米隧道",
tts = "${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,前方%s米隧道" tts = "前方%s米隧道"
), ),
TYPE_ID_FERRY( TYPE_ID_FERRY(
22.toString(), 22.toString(),
"渡轮", "渡轮",
poiTypeSrcVr = R.drawable.icon_default, poiTypeSrcVr = R.drawable.icon_default,
content = "前方%s米渡轮", content = "前方%s米渡轮",
tts = "${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,前方%s米渡轮" tts = "前方%s米渡轮"
), ),
TYPE_ID_UNEVEN_ROAD( TYPE_ID_UNEVEN_ROAD(
24.toString(), 24.toString(),
"路面不平", "路面不平",
poiTypeSrcVr = R.drawable.icon_warning_road_hollow, poiTypeSrcVr = R.drawable.icon_warning_road_hollow,
content = "前方%s米路面不平", content = "前方%s米路面不平",
tts = "${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,前方%s米路面不平" tts = "前方%s米路面不平"
), ),
TYPE_ID_NON_MOTOR_VEHICLE( TYPE_ID_NON_MOTOR_VEHICLE(
32.toString(), 32.toString(),
"非机动车", "非机动车",
poiTypeSrcVr = R.drawable.icon_warning_v2x_motobike, poiTypeSrcVr = R.drawable.icon_warning_v2x_motobike,
content = "前方%s米有非机动车", content = "前方%s米有非机动车",
tts = "${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,前方%s米有非机动车" tts = "前方%s米有非机动车"
), ),
TYPE_ID_OBSTACLE( TYPE_ID_OBSTACLE(
36.toString(), 36.toString(),
"障碍", "障碍",
poiTypeSrcVr = R.drawable.icon_default, poiTypeSrcVr = R.drawable.icon_default,
content = "前方%s米障碍", content = "前方%s米障碍",
tts = "${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,前方%s米障碍" tts = "前方%s米障碍"
), ),
TYPE_FOURS_ROAD_WORK( TYPE_FOURS_ROAD_WORK(
38.toString(), 38.toString(),
"施工", "施工",
poiTypeSrcVr = R.drawable.icon_warning_v2x_road_construction, poiTypeSrcVr = R.drawable.icon_warning_v2x_road_construction,
content = "前方%s米施工", content = "前方%s米施工",
tts = "${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,前方%s米施工" tts = "前方%s米施工"
), ),
TYPE_VEHICLE_QUEUE( TYPE_VEHICLE_QUEUE(
47.toString(), 47.toString(),
"车队", "车队",
poiTypeSrcVr = R.drawable.icon_default, poiTypeSrcVr = R.drawable.icon_default,
content = "前方%s米车队", content = "前方%s米车队",
tts = "${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,前方%s米车队" tts = "前方%s米车队"
), ),
TYPE_NO_PASSING( TYPE_NO_PASSING(
51.toString(), 51.toString(),
"道路不通", "道路不通",
poiTypeSrcVr = R.drawable.v2x_icon_fenglu_vr, poiTypeSrcVr = R.drawable.v2x_icon_fenglu_vr,
content = "前方%s米不通", content = "前方%s米不通",
tts = "${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,前方%s米不通" tts = "前方%s米不通"
), ),
TYPE_NO_TURNING_AROUND( TYPE_NO_TURNING_AROUND(
75.toString(), 75.toString(),
"禁止掉头", "禁止掉头",
poiTypeSrcVr = R.drawable.icon_default, poiTypeSrcVr = R.drawable.icon_default,
content = "前方%s米禁止掉头", content = "前方%s米禁止掉头",
tts = "${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,前方%s米禁止掉头" tts = "前方%s米禁止掉头"
), ),
TYPE_USECASE_ID_ROAD_NO_PARKING( TYPE_USECASE_ID_ROAD_NO_PARKING(
78.toString(), 78.toString(),
"禁止停车", "禁止停车",
poiTypeSrcVr = R.drawable.icon_warning_v2x_no_parking, poiTypeSrcVr = R.drawable.icon_warning_v2x_no_parking,
content = "前方%s米有禁停路段", content = "前方%s米有禁停路段",
tts = "${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,前方%s米有禁停路段" tts = "前方%s米有禁停路段"
), ),
TYPE_USECASE_ID_ROAD_NO_TOOTING( TYPE_USECASE_ID_ROAD_NO_TOOTING(
80.toString(), 80.toString(),
"禁止鸣笛", "禁止鸣笛",
poiTypeSrcVr = R.drawable.icon_warning_v2x_no_tooting, poiTypeSrcVr = R.drawable.icon_warning_v2x_no_tooting,
content = "前方%s米禁止鸣笛", content = "前方%s米禁止鸣笛",
tts = "${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,前方%s米禁止鸣笛" tts = "前方%s米禁止鸣笛"
), ),
TYPE_USECASE_ID_BUS_WARNING( TYPE_USECASE_ID_BUS_WARNING(
123.toString(), 123.toString(),
"公交提醒", "公交提醒",
poiTypeSrcVr = R.drawable.icon_warning_v2x_tramcar, poiTypeSrcVr = R.drawable.icon_warning_v2x_tramcar,
content = "前方%s米公交提醒", content = "前方%s米公交提醒",
tts = "${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,前方%s米公交提醒" tts = "前方%s米公交提醒"
), ),
TYPE_USECASE_ID_NARROW_RIGHT( TYPE_USECASE_ID_NARROW_RIGHT(
163.toString(), 163.toString(),
"右侧变窄/车道数减少", "右侧变窄/车道数减少",
poiTypeSrcVr = R.drawable.icon_default, poiTypeSrcVr = R.drawable.icon_default,
content = "前方%s米右侧变窄/车道数减少", content = "前方%s米右侧变窄/车道数减少",
tts = "${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,前方%s米右侧变窄/车道数减少" tts = "前方%s米右侧变窄/车道数减少"
), ),
TYPE_USECASE_ID_GAS_STATION( TYPE_USECASE_ID_GAS_STATION(
201.toString(), 201.toString(),
"加油站", "加油站",
poiTypeSrcVr = R.drawable.icon_warning_gas_station, poiTypeSrcVr = R.drawable.icon_warning_gas_station,
content = "前方%s米加油站", content = "前方%s米加油站",
tts = "${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,前方%s米加油站" tts = "前方%s米加油站"
), ),
TYPE_USECASE_ID_ROAD_PEDESTRIAN_SCHOOL( TYPE_USECASE_ID_ROAD_PEDESTRIAN_SCHOOL(
242.toString(), 242.toString(),
"学校", "学校",
poiTypeSrcVr = R.drawable.icon_warning_v2x_school, poiTypeSrcVr = R.drawable.icon_warning_v2x_school,
content = "前方%s米学校", content = "前方%s米学校",
tts = "${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,前方%s米学校" tts = "前方%s米学校"
), ),
TYPE_USECASE_ID_ACCIDENT( TYPE_USECASE_ID_ACCIDENT(
244.toString(), 244.toString(),
"交通事故", "交通事故",
poiTypeSrcVr = R.drawable.v2x_icon_jiaotongshigu_vr, poiTypeSrcVr = R.drawable.v2x_icon_jiaotongshigu_vr,
content = "前方%s米交通事故", content = "前方%s米交通事故",
tts = "${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,前方%s米交通事故" tts = "前方%s米交通事故"
), ),
TYPE_USECASE_ROAD_BUS_STATION( TYPE_USECASE_ROAD_BUS_STATION(
245.toString(), 245.toString(),
"通过公交站", "通过公交站",
poiTypeSrcVr = R.drawable.icon_v2x_bus_station_driver, poiTypeSrcVr = R.drawable.icon_v2x_bus_station_driver,
content = "前方%s米有公交站", content = "前方%s米有公交站",
tts = "${SkinResources.getInstance().getString(R.string.operation_platform_name)}发现前方公交站,提醒您注意右侧行人及来车" tts = "前方%s米有公交站"
), ),
TYPE_ATTENTION_CONFLUENCE( TYPE_ATTENTION_CONFLUENCE(
44.toString(), 44.toString(),
"前方车辆汇流", "前方车辆汇流",
poiTypeSrcVr = R.drawable.icon_warning_v2x_attention_confluence, poiTypeSrcVr = R.drawable.icon_warning_v2x_attention_confluence,
content = "前方%s米注意车辆汇", content = "前方%s米注意车辆汇",
tts = "${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,前方%s米注意车辆汇" tts = "前方%s米注意车辆汇"
), ),
TYPE_PEDESTRIAN_CROSSING( TYPE_PEDESTRIAN_CROSSING(
114.toString(), 114.toString(),
"人行横道", "人行横道",
poiTypeSrcVr = R.drawable.icon_warning_v2x_person, poiTypeSrcVr = R.drawable.icon_warning_v2x_person,
content = "前方%s米人行横道", content = "前方%s米人行横道",
tts = "${SkinResources.getInstance().getString(R.string.operation_platform_name)}路侧提醒您,前方%s米人行横道" tts = "前方%s米人行横道"
), ),
//------------车内标牌 obu end --------------> //------------车内标牌 obu end -------------->