vue3+ts 实现语音播报功能,使用浏览器内置功能即可实现语音播报功能
function voicePrompt (text:any){
speechSynthesis.speak(new SpeechSynthesisUtterance("你有新的订单注意查收"));
}
vue3+ts 实现语音播报功能,使用浏览器内置功能即可实现语音播报功能
function voicePrompt (text:any){
speechSynthesis.speak(new SpeechSynthesisUtterance("你有新的订单注意查收"));
}