NMATTSAudioOutput
Class Summary
class NMATTSAudioOutput
Derived from: NMAAudioOutput
A TTS audio output segment consisting of a single string.
Include: NMAKit.framework/headers/NMATTSAudioOutput.h
[For complete information, see the section Class Details]
Public Property Summary
Public Properties |
---|
[readable, writable, assign] The pitch multiplier with which the text is spoken |
[readable, writable, assign] The speech rate at which the text is spoken |
[readable, writable, assign] The text string to speak |
[readable, writable, assign] The voice used to speak the text |
Instance Method Summary
Instance Method Summary |
---|
Must initalize with a text string |
Initializes an NMATTSAudioOutput with the given text string |
Class Method Summary
Class Methods |
---|
Creates an NMATTSAudioOutput with the given text string |
Must initalize with a text string |
Class Details
A TTS audio output segment consisting of a single string.
Audio output should never be played directly. Instead it should be passed to the NMAAudioManager (via the playOutput method) to be played.
Public Property Details
[readable, writable, assign] float pitchMultiplier
The pitch multiplier with which the text is spoken.
The default value is 1.0;
[readable, writable, assign] float speechRate
The speech rate at which the text is spoken.
The default value is AVSpeechUtteranceDefaultSpeechRate.
[readable, writable, assign] NSString * text
The text string to speak.
[readable, writable, assign] AVSpeechSynthesisVoice * voice
The voice used to speak the text.
By default, the voice will be selected based on the current locale of the device.
Instance Method Details
-(nonnull instancetype) init
Must initalize with a text string.
-(nullable instancetype) initWithText:(nonnull NSString *) text
Initializes an NMATTSAudioOutput with the given text string.
Class Method Details
+(nullable instancetype) audioOutputWithText:(nonnull NSString *) text
Creates an NMATTSAudioOutput with the given text string.
+(nonnull instancetype) new
Must initalize with a text string.