Anonymous user
Speech synthesis: Difference between revisions
add swift
(add swift) |
|||
Line 298:
|is feared and hearkened.""".stripMargin)
}</lang>
=={{header|Swift}}==
OS X comes with a program called "say," that does speech.
<lang Swift>import Foundation
let task = NSTask()
task.launchPath = "/usr/bin/say"
task.arguments = ["This is an example of speech synthesis."]
task.launch()</lang>
=={{header|Tcl}}==
|