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 IVoiceCapabilitiesQueryBuilder

interface IVoiceCapabilitiesQueryBuilder
Extends com.amazon.apmf.IStandard Interface for building custom voice capabilities. This interface allows constructing a custom IVoiceCapabilities object by choosing compatible locales, sampling rates, speech rates and operating modes. A single invocation of the method taking an array as argument is considered as all array items has to be matched whereas multiple invocations of the same method are considered as any of the arguments has to be matched, e.g. builder.preferredLocales({“en-US”, “de-DE”}). preferredLocales({“en-GB”, “fr-FR”}) means that result will contain voices supporting both “en-US” and “de-DE” locales or both “en-GB” and “fr-FR”.

Methods

preferredLocales()

IVoiceCapabilitiesQueryBuilder* preferredLocales(ILocale*[] locales)
Adds the preferred locales to the query.

Parameters

locales
ILocale*[] — Required An array of ILocale objects representing the preferred locales.

Returns

IVoiceCapabilitiesQueryBuilder* The updated instance of the IVoiceCapabilitiesQueryBuilder.

supportedLocales()

IVoiceCapabilitiesQueryBuilder* supportedLocales(ILocale*[] locales)
Adds the supported locales to the query.

Parameters

locales
ILocale*[] — Required An array of ILocale objects representing the supported locales.

Returns

IVoiceCapabilitiesQueryBuilder* The updated instance of the IVoiceCapabilitiesQueryBuilder.

supportedInputFormatTypes()

IVoiceCapabilitiesQueryBuilder* supportedInputFormatTypes(InputFormatType[] formats)
Adds the supported input format types to the query.

Parameters

formats
InputFormatType[] — Required An array of InputFormatType objects representing the supported input formats for the utterance.

Returns

IVoiceCapabilitiesQueryBuilder* The updated instance of the IVoiceCapabilitiesQueryBuilder.

operatingMode()

IVoiceCapabilitiesQueryBuilder* operatingMode(OperatingMode[] operatingModes)
Adds the operating modes to the query.

Parameters

operatingModes
OperatingMode[] — Required An array of OperatingMode values representing the supported operating modes.

Returns

IVoiceCapabilitiesQueryBuilder* The updated instance of the IVoiceCapabilitiesQueryBuilder.

gender()

IVoiceCapabilitiesQueryBuilder* gender(Gender gender)
Sets the gender for the query.

Parameters

gender
Gender — Required The gender to be set in the query.

Returns

IVoiceCapabilitiesQueryBuilder* The updated instance of the IVoiceCapabilitiesQueryBuilder.

quality()

IVoiceCapabilitiesQueryBuilder* quality(Quality quality)
Sets the quality for the query.

Parameters

quality
Quality — Required The quality to be set in the query.

Returns

IVoiceCapabilitiesQueryBuilder* The updated instance of the IVoiceCapabilitiesQueryBuilder.

build()

IVoiceCapabilitiesQuery* build()
Builds the query based on the provided criteria.

Returns

IVoiceCapabilitiesQuery* A IVoiceCapabilitiesQuery object encapsulating the query.
Last modified on October 29, 2026