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()
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.ILocale*[]getPreferredLocales()
Returns
ILocale*[]
An array containing supported locales.
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.ILocale*[]getSupportedLocales()
Returns
ILocale*[]
An array containing supported locales.
getSupportedInputFormats()
Fetches the all input formats supported by the voice.InputFormatType[]getSupportedInputFormats()
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()
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.com.amazon.kepler.audio.AudioConfig[]getAudioConfigs()
Returns
com.amazon.kepler.audio.AudioConfig[]
An array containing supported sampling rates.
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.OperatingMode[]getOperatingModes()
Returns
OperatingMode[]
An array containing supported operating modes.

