MonobjcMonobjc Documented Class Library
InitWithVoice Method (voiceIdentifier)
NamespacesMonobjc.AppKitNSSpeechSynthesizerInitWithVoice(NSString)

Initializes the receiver with a voice.

Original signature is '- (id)initWithVoice:(NSString *)voiceIdentifier'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithVoice(
	NSString voiceIdentifier
)
Public Overridable Function InitWithVoice ( _
	voiceIdentifier As NSString _
) As Id
public:
virtual Id^ InitWithVoice(
	NSString^ voiceIdentifier
)
Parameters
voiceIdentifier (NSString)
Identifier of the voice to set as the current voice. When nil, the default voice is used. Passing in a specific voice means the initial speaking rate is determined by the synthesizer’s default speaking rate; passing nil means the speaking rate is automatically set to the rate the user specifies in Speech preferences.
Return Value
Initialized speech synthesizer or nil when the voice identified by voiceIdentifier is not available or when there’s an allocation error.
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)