HERE iOS SDK Developer's Guide

NMATTSAudioOutput

Class Summary

class NMATTSAudioOutput

Derived from: NMAAudioOutput

A TTS audio output segment consisting of a single string.

Include: NMAKit.framework/headers/NMATTSAudioOutput.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for NMATTSAudioOutput

[For complete information, see the section Class Details]

Public Property Summary

Table 1. Public Properties
Public Properties

[readable, writable, assign] float  pitchMultiplier

The pitch multiplier with which the text is spoken

[readable, writable, assign] float  speechRate

The speech rate at which the text is spoken

[readable, writable, assign] NSString *  text

The text string to speak

[readable, writable, assign] AVSpeechSynthesisVoice *  voice

The voice used to speak the text

Instance Method Summary

Table 2. Instance Methods
Instance Method Summary

-(nonnull) init

Must initalize with a text string

-(nullable) initWithText:(nonnull NSString *) text

Initializes an NMATTSAudioOutput with the given text string

Class Method Summary

Table 3. Class Methods
Class Methods

+(nullable) audioOutputWithText:(nonnull NSString *) text

Creates an NMATTSAudioOutput with the given text string

+(nonnull) new

Must initalize with a text string

Class Details

A TTS audio output segment consisting of a single string.

Note:

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.

Note:

The default value is 1.0;

[readable, writable, assign] float speechRate

The speech rate at which the text is spoken.

Note:

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.

Note:

By default, the voice will be selected based on the current locale of the device.

Instance Method Details

-(nonnull) init

Must initalize with a text string.

-(nullable) initWithText:(nonnull NSString *) text

Initializes an NMATTSAudioOutput with the given text string.

Class Method Details

+(nullable) audioOutputWithText:(nonnull NSString *) text

Creates an NMATTSAudioOutput with the given text string.

+(nonnull) new

Must initalize with a text string.

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.