RosettaCodeData/Task/Speech-synthesis/Sidef/speech-synthesis.sidef
2023-07-01 13:44:08 -04: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.");