网站开发 视频存在哪,检察院前期网站建设,seo超级外链,搞笑资讯网站源码最简单的例子#xff0c;在chrome上亲测有效#xff1a;
const utterThis new SpeechSynthesisUtterance(我来试试呀);
const synth window.speechSynthesis;
synth.speak(utterThis);加入配置#xff0c;可以配置语言、音量、语速、音高#xff0c;继续玩#xff1a; …最简单的例子在chrome上亲测有效
const utterThis new SpeechSynthesisUtterance(我来试试呀);
const synth window.speechSynthesis;
synth.speak(utterThis);加入配置可以配置语言、音量、语速、音高继续玩
const utterThis new SpeechSynthesisUtterance();
utterThis.text 我来试试呀;
utterThis.lang zh-CN; // 语言
// syu.lang en-US; //语言
utterThis.volume 1; // 音量0~1默认1
utterThis.rate 1; // 语速0.1~10默认1
utterThis.pitch 1; // 音高0~2默认1
const synth window.speechSynthesis;
synth.speak(utterThis);