Commit 8fabbb42 authored by 杨思琦's avatar 杨思琦

fix: 播报语音修改

parent 986e4d25
Pipeline #77932 passed with stages
...@@ -490,13 +490,13 @@ class Notifier { ...@@ -490,13 +490,13 @@ class Notifier {
this.speak(msg); this.speak(msg);
}; };
speakDefault = message => { speakDefault = message => {
let msg = `${message.title},${message.title}: ${message.infoContent ?? ''}` let msg = replaceSpeak(`${message.title},${message.title}: ${message.infoContent ?? ''}`)
this.speak(msg); this.speak(msg);
}; };
speakWebVoice = message => { speakWebVoice = message => {
const { webVoice } = message; const { webVoice } = message;
if(typeof webVoice === "string") { if(typeof webVoice === "string") {
this.speak(webVoice?.replace(/_/g, ',')); this.speak(replaceSpeak(webVoice.replace(/_/g, ',')));
} }
} }
speak = msg => { speak = msg => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment