智慧园区前端大屏
shuishen
2025-01-20 40df330a3bcba383753c6d4ddda315690a041ff7
事件模拟语音速度调整
1 files modified
4 ■■■■ changed files
src/views/pd/components/dynamicPanel.vue 4 ●●●● patch | view | raw | blame | history
src/views/pd/components/dynamicPanel.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2024-11-09 15:41:35
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2025-01-20 15:18:40
 * @LastEditTime: 2025-01-20 15:59:17
 * @FilePath: \bigScreen\src\views\pd\components\dynamicPanel.vue
 * @Description: 
 * 
@@ -145,7 +145,7 @@
  let u = new SpeechSynthesisUtterance()
  let voices = synth.getVoices()
  u.text = msg
  u.rate = 2
  u.rate = 1.5
  let findObj = voices.some(voice => voice.lang == 'zh-CN')
  if (!findObj) {