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 IVoiceCapabilities

interface IVoiceCapabilities
Extends com.amazon.apmf.IStandard Interface representing technical features of the voice. This interface allows for acquiring different technical capabilities of the voice like supported languages, sampling rates or operation modes. It can be used for understanding the features of a particular voice as well as for filtering voices having required features for certain tasks.

Methods

getPreferredLocales()

ILocale*[] getPreferredLocales()
Fetches the preferred locales for that voice, i.e. the locales in which taht voice sounds the best. This function retrieves an array of locale objects representing all supported languages by the voice. A single artificial voice can be capable of synthesizing speech in multiple languages, therefore it’s crucial to retrieve these capabilities for accurate speech generation.

Returns

ILocale*[] An array containing supported locales.

getSupportedLocales()

ILocale*[] getSupportedLocales()
Fetches the all locales supported by the voice including those with not perfect accent. This function retrieves an array of locale objects representing all supported languages by the voice. A single artificial voice can be capable of synthesizing speech in multiple languages, therefore it’s crucial to retrieve these capabilities for accurate speech generation.

Returns

ILocale*[] An array containing supported locales.

getSupportedInputFormats()

InputFormatType[] getSupportedInputFormats()
Fetches the all input formats supported by the voice.

Returns

InputFormatType[] An array containing supported locales.

getGender()

Gender getGender()
Fetches the gender of the voice.

Returns

Gender Gender of the voice encapsulated in the Gender struct.

getQuality()

Quality getQuality()
Fetches the quality of the voice.

Returns

Quality Quality of the voice encapsulated in the Quality struct.

getAudioConfigs()

com.amazon.kepler.audio.AudioConfig[] getAudioConfigs()
Fetches the audio configs supported by the voice. This function retrieves an array of AudioConfig objects representing all audio configurations of the generated speech supported by the voice. Using an unsupported audio configuration can lead to quality issues in the generated sound.

Returns

com.amazon.kepler.audio.AudioConfig[] An array containing supported sampling rates.

getOperatingModes()

OperatingMode[] getOperatingModes()
Fetches the operating modes supported by the voice. Depending on the used speech technology, a voice might be able to operate in different modes like ‘ONLINE’, ‘OFFLINE’ etc. This function retrieves an array of supported operating modes by the voice.

Returns

OperatingMode[] An array containing supported operating modes.
Last modified on October 29, 2026