Instance Method

setVoice(_:)

Sets the receiver’s current voice.

Declaration

func setVoice(_ voice: NSSpeechSynthesizer.VoiceName?) -> Bool

Parameters

voiceIdentifier

Identifier of the voice to set at the receiver’s current voice. When nil, the receiver sets the default voice as its current voice.

Return Value

true when the receiver is not currently synthesizing speech and the current voice is set successfully, false otherwise.

See Also

Configuring Speech Synthesizers

var usesFeedbackWindow: Bool

Indicates whether the receiver uses the speech feedback window.

func voice() -> NSSpeechSynthesizer.VoiceName?

Returns the identifier of the receiver’s current voice.

var rate: Float

The synthesizer’s speaking rate (words per minute).

var volume: Float

The synthesizer’s speaking volume.