RosettaCodeData/Task/Speech-synthesis/Sidef/speech-synthesis.sidef
2016-12-05 23:44:36 +01:00

4 lines
166 B
Text

func text2speech(text, lang='en') {
Sys.run("espeak -v #{lang} -w /dev/stdout #{text.escape} | aplay");
}
text2speech("This is an example of speech synthesis.");