RosettaCodeData/Task/Speech-synthesis/JavaScript/speech-synthesis-1.js
2023-07-01 13:44:08 -04:00

2 lines
130 B
JavaScript

var utterance = new SpeechSynthesisUtterance("This is an example of speech synthesis.");
window.speechSynthesis.speak(utterance);