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

6 lines
147 B
Swift

import Foundation
let task = NSTask()
task.launchPath = "/usr/bin/say"
task.arguments = ["This is an example of speech synthesis."]
task.launch()