文字转语音

  作者:chrispy

speckText('刷新完成');function speckText(str) {var url = "http://tts.baidu.com/text2audio?lan=zh&ie=UTF-8&text=" + encodeURI(str); // baiduvar n = new Audio(url);n.src = url;n.play();}

speckText('刷新完成');

function speckText(str) {

var url = "http://tts.baidu.com/text2audio?lan=zh&ie=UTF-8&text=" + encodeURI(str);        // baidu

var n = new Audio(url);

n.src = url;

n.play();

}


有用  |  无用

猜你喜欢