com.bandwidth.sdk.model.bxml.utils.TtsLocale Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bandwidth-sdk Show documentation
Show all versions of bandwidth-sdk Show documentation
The official client SDK for Bandwidth's Voice, Messaging, MFA, and WebRTC APIs
The newest version!
package com.bandwidth.sdk.model.bxml.utils;
import com.fasterxml.jackson.annotation.JsonCreator;
import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
@XmlEnum
public enum TtsLocale {
@XmlEnumValue("en_US") EN_US("en_US"),
@XmlEnumValue("en_UK") EN_UK("en_UK"),
@XmlEnumValue("de") DE("de"),
@XmlEnumValue("es") ES("es"),
@XmlEnumValue("es_MX") ES_MX("es_MX"),
@XmlEnumValue("fr") FR("fr"),
@XmlEnumValue("it") IT("it"),
@XmlEnumValue("ru") RU("ru"),
@XmlEnumValue("ja") JA("ja"),
@XmlEnumValue("arb") ARB("arb"),
@XmlEnumValue("cmn-CN") CMN_CN("cmn-CN");
private final String locale;
TtsLocale(String locale) {
this.locale = locale;
}
@JsonCreator
public static TtsLocale resolve(String localeString) {
return EnumFinder.of(TtsLocale.class)
.find(loc -> loc.locale.equals(localeString));
}
public String toString() {
return locale;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy