setVoice(_:)
Sets the receiver’s current voice.
Declaration
func setVoice(_ voice: NSSpeechSynthesizer.VoiceName?) -> BoolParameters
- voice:
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.