Interface ILocale
interface ILocale
Extends com.amazon.apmf.IStandard
ILocale is an interface that represents the locale for Text-to-Speech
synthesis.
This interface provides methods for retrieving locale information,
for speech synthesis. A ‘Locale’ represents
a specific geographical, political, or cultural region and is crucial
in accurately interpreting the given text. It follows BCP-47 format.
Methods
getCode()
string getCode()
Fetches the string representation of the locale in BCP-47 format.
This function retrieves the string representation, following the BCP-47 standard,
of the locale object it’s called on. This representation can
subsequently be used for internal localization functions in the TTS system.
Returns
string
String representation of the locale.

