瀏覽代碼

语音播报-修改更新

lxh 5 天之前
父節點
當前提交
936e7b5a04
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/layouts/default/header/components/notify/speakVoice.ts

+ 1 - 1
src/layouts/default/header/components/notify/speakVoice.ts

@@ -13,7 +13,7 @@ export default class SpeakVoice {
   // 初始化
   initVoice() {
     this.instance.volume = 1; // 声音音量:1,范围从0到1
-    this.instance.rate = 3; // 设置语速:1,范围从0到100
+    this.instance.rate = 1; // 设置语速:1,范围从0到100
     this.instance.lang = 'zh-CN'; // 使用的语言:中文
     this.instance.pitch = 1; // 表示说话的音高,数值,范围从0(最小)到2(最大)。默认值为1
     this.instance.voiceURI = 'Ting-Ting';