请问window.speechSynthesis文字转声音如何下载音频文件?
比如下面这段在浏览器中文字转语音的代码,如何转变成音频下载到本地呢?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<script>
var utterThis = new window.SpeechSynthesisUtterance('您的余额不足,请及时充值');
utterThis.pitch=1
utterThis.rate=0.6
utterThis.voiceURI='BaiduMandarinMale'
window.speechSynthesis.speak(utterThis);
</script>
</body>
</html>网友回复


