Interface IVoice
interface IVoice
Extends com.amazon.apmf.IStandard
Interface representing characteristics of a synthetic TTS voice.
This interface encapsulates all features and parameters characteristic
for a specific synthetic voice. It includes the voice’s name, provider,
and supported technical capabilities.
Methods
getId()
VoiceId getId()
Retrieves the unique identifier for the voice.
Returns
VoiceId
The identifier of the voice encapsulated in a VoiceId object.
getName()
string getName()
Fetches the name of the voice.
This function retrieves the name of the voice object it’s called
on. This name serves as a unique identifier for the voice for the
particular provider and can be used for voice-specific operations
or voice selection.
Returns
string
Name of the voice.
getVoiceCapabilities()
Fetches the voice capabilities. This function retrieves an IVoiceCapabilities instance describing the technical capabilities of the voice. These capabilities include all the supported locales, sample rates, speech rates, and operating modes.IVoiceCapabilities*getVoiceCapabilities()
Returns
IVoiceCapabilities*
Voice capabilities.
getProvider()
Fetches the provider of the voice. This function retrieves the IVoiceProvider object linked to the voice. This object represents the entity responsible for the voice and can be crucial for certain provider-specific tasks.IVoiceProvider*getProvider()
Returns
IVoiceProvider*
Voice’s provider.

