Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IUtterance

interface IUtterance
Extends com.amazon.apmf.IStandard IUtterance is an interface representing a single unit of speech synthesis. This interface provides methods to retrieve input details and speech attributes.

Methods

getInput()

UtteranceInput* getInput()
Fetches the utterance input details for the voice synthesis request.

Returns

UtteranceInput* An UtteranceInput object encompassing the textual input details for the speech synthesis.

getSpeechAttributes()

SpeechAttributes* getSpeechAttributes()
Fetches the speech attributes connected with the voice synthesis request.

Returns

SpeechAttributes* An SpeechAttributes object offering default values for the speech synthesis request.

getSpeechStream()

ISpeechStream* getSpeechStream()
Fetches the Speech Stream associated with the utterance request.

Returns

ISpeechStream* The ISpeechStream object enabling access to synthesized speech.

addUtteranceProgressListener()

com.amazon.apmf.ISubscription* addUtteranceProgressListener(IUtteranceProgressListener* utteranceProgressListener)
Registers a listener to receive notifications of utterance request progress.

Parameters

utteranceProgressListener
IUtteranceProgressListener* — Required The IUtteranceProgressListener to register.

Returns

com.amazon.apmf.ISubscription* An instance of ISubscription that can be used to cancel the listener from being called back during utterance progress.
Last modified on October 29, 2026