MonobjcMonobjc Documented Class Library
SetVoice Method (voiceIdentifier)
NamespacesMonobjc.AppKitNSSpeechSynthesizerSetVoice(NSString)

Sets the receiver’s current voice.

Original signature is '- (BOOL)setVoice:(NSString *)voiceIdentifier'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool SetVoice(
	NSString voiceIdentifier
)
Public Overridable Function SetVoice ( _
	voiceIdentifier As NSString _
) As Boolean
public:
virtual bool SetVoice(
	NSString^ voiceIdentifier
)
Parameters
voiceIdentifier (NSString)
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
YES when the receiver is not currently synthesizing speech and the current voice is set successfully, NO otherwise.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)