Contents

outputToFileURL

Set the speech output destination to a file or to the computer’s speakers.

Declaration

static let outputToFileURL: NSSpeechSynthesizer.SpeechPropertyKey

Discussion

An NSURL object. To write the speech output to a file, use the file’s NSURL; to generate the sound through the computer’s speakers, use nil. This property works with setObject(_:forProperty:).

See Also

Speech Property Keys