-
首先定义一个文字转语音的js文件
const synth = window.speechSynthesis /** * 文字转语音 * @author 袁首京 */ export default { /** * 语音提醒 * @param {String} text */ speek (text) { const ssu = new SpeechSynthesisUtterance(text) synth
vue项目中利用H5的语音合成实现语音播报
最新推荐文章于 2025-07-09 16:29:18 发布