-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #358 from Vonage/language_style
Adding Language and style, deprecating voice name
- Loading branch information
Showing
12 changed files
with
389 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
src/main/java/com/vonage/client/voice/TextToSpeechLanguage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
package com.vonage.client.voice; | ||
|
||
import com.fasterxml.jackson.annotation.JsonEnumDefaultValue; | ||
import com.fasterxml.jackson.annotation.JsonValue; | ||
|
||
public enum TextToSpeechLanguage { | ||
ARABIC("ar"), | ||
SPANISH_CATALAN("ca-ES"), | ||
CHINESE_MANDARIN("cmn-CN"), | ||
TAIWANESE_MANDARIN("cmn-TW"), | ||
CZECH("cs-CZ"), | ||
WELSH("cy-GB"), | ||
DANISH("da-DK"), | ||
GERMAN("de-DE"), | ||
GREEK("el-GR"), | ||
AUSTRALIAN_ENGLISH("en-AU"), | ||
UNITED_KINGDOM_ENGLISH("en-GB"), | ||
WELSH_ENGLISH("en-GB-WLS"), | ||
INDIAN_ENGLISH("en-IN"), | ||
AMERICAN_ENGLISH("en-US"), | ||
SOUTH_AFRICAN_ENGLISH("en-ZA"), | ||
SPANISH("es-ES"), | ||
MEXICAN_SPANISH("es-MX"), | ||
AMERICAN_SPANISH("es-US"), | ||
BASQUE("eu-ES"), | ||
FINISH("fi-FI"), | ||
FILIPINO("fil-PH"), | ||
CANADIAN_FRENCH("fr-CA"), | ||
FRENCH("fr-FR"), | ||
HEBREW("he-IL"), | ||
HINDI("hi-IN"), | ||
HUNGARIAN("hu-HU"), | ||
INDONESIAN("id-ID"), | ||
ICELANDIC("is-IS"), | ||
ITALIAN("it-IT"), | ||
JAPANESE("ja-JP"), | ||
KOREAN("ko-KR"), | ||
NORWEGIAN("no-NO"), | ||
NORWEGIAN_BOKMAL("nb-NO"), | ||
DUTCH("nl-NL"), | ||
POLISH("pl-PL"), | ||
BRAZILIAN_PORTUGUESE("pt-BR"), | ||
PORTUGUESE("pt-PT"), | ||
ROMANIAN("ro-RO"), | ||
RUSSIAN("ru-RU"), | ||
SLOVAK("sk-SK"), | ||
SWEDISH("sv-SE"), | ||
THAI("th-TH"), | ||
TURKISH("tr-TR"), | ||
UKRAINIAN("uk-UA"), | ||
VIETNAMESE("vi-VN"), | ||
CHINESE_YUE("yue-CN"), | ||
@JsonEnumDefaultValue | ||
UNKNOWN("Unknown"); | ||
private final String language; | ||
TextToSpeechLanguage(String language){this.language=language;} | ||
@JsonValue | ||
public String getLanguage(){return this.language;} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.