RosettaCodeData/Task/Speech-synthesis/Swift/speech-synthesis.swift
2023-07-01 13:44:08 -04: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()