]> acesimba.cloud Git - study-mountion.git/commitdiff
循环播放:逐字母拼写语速降为当前80% master
authorstudyhill <studyhill@local>
Tue, 15 Sep 2026 02:30:38 +0000 (10:30 +0800)
committerstudyhill <studyhill@local>
Tue, 15 Sep 2026 02:30:38 +0000 (10:30 +0800)
frontend/src/components/LoopPlayer.jsx

index 0a9dc75a1d796f9ca41d4c985d2d0e48fa187d6f..9cabd8e3e3169b011cecc1f6490937fcd038e7cc 100644 (file)
@@ -34,9 +34,9 @@ function buildQueue(w, baseRate = 1) {
   if (!w) return []
   const q = [
     { key: 'word', text: w.word, lang: 'en' },
-    { key: 'letters', text: w.word.split('').join('-'), lang: 'en' },
+    { key: 'letters', text: w.word.split('').join('-'), lang: 'en', rate: baseRate * 0.8 },
     { key: 'word', text: w.word, lang: 'en' },
-    { key: 'letters', text: w.word.split('').join('-'), lang: 'en' },
+    { key: 'letters', text: w.word.split('').join('-'), lang: 'en', rate: baseRate * 0.8 },
     { key: 'zh', text: `${w.meaning || ''} ${posToZh(w.pos) || ''}`.trim(), lang: 'zh' },
   ]
   if (w.example) {