From 99432b1afbcb29b833233cf7fa52b41275479f3a Mon Sep 17 00:00:00 2001 From: yangyakun Date: Wed, 24 Jan 2024 19:00:25 +0800 Subject: [PATCH] =?UTF-8?q?[5.2.9]=20[shuttle=5Fp=5Fm2]=20[=E8=AF=AD?= =?UTF-8?q?=E9=9F=B3=E4=BF=AE=E6=AD=A3]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/mogo/och/shuttle/passenger/model/PM2DrivingModel.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OCH/shuttle/passenger/src/main/java/m2/com/mogo/och/shuttle/passenger/model/PM2DrivingModel.kt b/OCH/shuttle/passenger/src/main/java/m2/com/mogo/och/shuttle/passenger/model/PM2DrivingModel.kt index f209248e82..ee8f705ac9 100644 --- a/OCH/shuttle/passenger/src/main/java/m2/com/mogo/och/shuttle/passenger/model/PM2DrivingModel.kt +++ b/OCH/shuttle/passenger/src/main/java/m2/com/mogo/och/shuttle/passenger/model/PM2DrivingModel.kt @@ -554,7 +554,9 @@ class PM2DrivingModel private constructor() { val stationNext = mStations[mNextStationIndex] if (!stationNext.isPlayTts) { if (!StringUtils.isEmpty(stationNext.introduction)) { - showNotice(stationNext.introduction) + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { + speakTTS(stationNext.introduction) + } stationNext.isPlayTts = true } }