Description
CDN Search
75CDN jsDelivr
<!DOCTYPE html>
<html>

<head>
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta charset="utf-8" />
	<title>NetnrRun</title>
</head>

<body>
	<textarea id="txtWord">Hello,Welcome net牛人,祝您美好每一天!</textarea>
	<button id="btnPlay">Play</button>
</body>

</html>
document.getElementById('btnPlay').onclick = function () {
    var txt = document.getElementById('txtWord').value;
    if (txt != "") {
        var utterThis = new window.SpeechSynthesisUtterance(txt);
        window.speechSynthesis.speak(utterThis);
    }
}
textarea{
    width: 100%;
    height: 70px;
}