RosettaCodeData/Task/Speech-synthesis/JavaScript/speech-synthesis-2.js

3 lines
103 B
JavaScript

var voice = new ActiveXObject("SAPI.SpVoice");
voice.speak("This is an example of speech synthesis.");