From 47f718a1292ff95f5f4c474088da8d535be99ec3 Mon Sep 17 00:00:00 2001 From: cnliucheng Date: Thu, 11 Jun 2026 11:51:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AE=AD=E7=BB=83=E5=BC=80=E5=A7=8B?= =?UTF-8?q?=E6=97=B6=E6=B7=BB=E5=8A=A0=E8=AF=AD=E9=9F=B3=E6=92=AD=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cloudfunctions/tts/index.js | 1 + pages/timer/timer.js | 2 ++ utils/voice.js | 1 + 3 files changed, 4 insertions(+) diff --git a/cloudfunctions/tts/index.js b/cloudfunctions/tts/index.js index c89c25b..5e4b7c4 100644 --- a/cloudfunctions/tts/index.js +++ b/cloudfunctions/tts/index.js @@ -20,6 +20,7 @@ cloud.init() // Polished, fixed prompts. const PROMPTS = { + start: '训练已开始', halfway: '已完成一半啦,坚持就是胜利!', last30: '最后30秒,保持呼吸,稳住姿势!', last10: '最后10秒,再加把劲!', diff --git a/pages/timer/timer.js b/pages/timer/timer.js index b685a1c..bbf91fc 100644 --- a/pages/timer/timer.js +++ b/pages/timer/timer.js @@ -165,6 +165,8 @@ Page({ if (this.data.isRunning) return this._timer.start(this.data.duration) this.setData({ isRunning: true, status: 'running' }) + const s = storage.getSettings() + if (s.voiceGuide !== false) voice.play('start') }, onPause() { diff --git a/utils/voice.js b/utils/voice.js index 97350b2..74fc3d9 100644 --- a/utils/voice.js +++ b/utils/voice.js @@ -18,6 +18,7 @@ */ const PROMPTS = { + start: '训练已开始', halfway: '已完成一半啦,坚持就是胜利!', last30: '最后30秒,保持呼吸,稳住姿势!', last10: '最后10秒,再加把劲!',