Skip to content

Commit

Permalink
Merge pull request #286 from Nexmo/update-voice-names
Browse files Browse the repository at this point in the history
add new voice names
  • Loading branch information
yallen011 authored Jun 11, 2020
2 parents fb39d82 + 6ac8810 commit 1146701
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 67 deletions.
143 changes: 76 additions & 67 deletions src/main/java/com/nexmo/client/voice/VoiceName.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,92 +32,101 @@
*/

public enum VoiceName {
SALLI("Salli"),
JOEY("Joey"),
MATTHEW("Matthew"),
NAJA("Naja"),
MADS("Mads"),
MARLENE("Marlene"),
HANS("Hans"),
NICOLE("Nicole"),
RUSSELL("Russell"),
ADITI("Aditi"),
AGNIESZKA("Agnieszka"),
ALVA("Alva"),
AMY("Amy"),
ASTRID("Astrid"),
BIANCA("Bianca"),
BRIAN("Brian"),
EMMA("Emma"),
GWYNETH("Gwyneth"),
GERAINT("Geraint"),
RAVEENA("Raveena"),
CARLA("Carla"),
CARMEN("Carmen"),
CARMIT("Carmit"),
CATARINA("Catarina"),
CELINE("Celine"),
CEM("Cem"),
CHANTAL("Chantal"),
CHIPMUNK("Chipmunk"),
CONCHITA("Conchita"),
CRISTIANO("Cristiano"),
DAMAYANTI("Damayanti"),
EMPAR("Empar"),
DORA("Dora"),
EMMA("Emma"),
ENRIQUE("Enrique"),
ERIC("Eric"),
EWA("Ewa"),
FELIPE("Felipe"),
FILIZ("Filiz"),
GERAINT("Geraint"),
GIORGIO("Giorgio"),
GWYNETH("Gwyneth"),
HANS("Hans"),
HENRIK("Henrik"),
INES("Ines"),
IOANA("Ioana"),
IVETA("Iveta"),
IVY("Ivy"),
JACEK("Jacek"),
JAN("Jan"),
JENNIFER("Jennifer"),
JOANA("Joana"),
JOEY("Joey"),
JORDI("Jordi"),
JUSTIN("Justin"),
KANYA("Kanya"),
KARL("Karl"),
KENDRA("Kendra"),
KIMBERLY("Kimberly"),
CONCHITA("Conchita"),
ENRIQUE("Enrique"),
PENELOPE("Penelope"),
MIGUEL("Miguel"),
CHANTAL("Chantal"),
CELINE("Celine"),
MATHIEU("Mathieu"),
DORA("Dora"),
KARL("Karl"),
CARLA("Carla"),
GIORGIO("Giorgio"),
LAILA("Laila"),
LAURA("Laura"),
LEA("Lea"),
LEKHA("Lekha"),
LIV("Liv"),
LOTTE("Lotte"),
RUBEN("Ruben"),
AGNIESZKA("Agnieszka"),
JACEK("Jacek"),
EWA("Ewa"),
JAN("Jan"),
LUCIA("Lucia"),
LUCIANA("Luciana"),
MADS("Mads"),
MAGED("Maged"),
MAJA("Maja"),
VITORIA("Vitoria"),
RICARDO("Ricardo"),
CRISTIANO("Cristiano"),
INES("Ines"),
CARMEN("Carmen"),
MARISKA("Mariska"),
MARLENE("Marlene"),
MATHIEU("Mathieu"),
MATTHEW("Matthew"),
MAXIM("Maxim"),
TATYANA("Tatyana"),
ASTRID("Astrid"),
FILIZ("Filiz"),
MIZUKI("Mizuki"),
SEOYEON("Seoyeon"),
LAILA("Laila"),
MAGED("Maged"),
TARIK("Tarik"),
DAMAYANTI("Damayanti"),
MEI_JIA("Mei-Jia"),
MELINA("Melina"),
MIA("Mia"),
MIGUEL("Miguel"),
MIREN("Miren"),
SIN_JI("Sin-Ji"),
JORDI("Jordi"),
MIZUKI("Mizuki"),
MONTSERRAT("Montserrat"),
IVETA("Iveta"),
ZUZANA("Zuzana"),
TESSA("Tessa"),
SATU("Satu"),
MELINA("Melina"),
NAJA("Naja"),
NICOLE("Nicole"),
NIKOS("Nikos"),
CARMIT("Carmit"),
LEKHA("Lekha"),
MARISKA("Mariska"),
SORA("Sora"),
TIAN_TIAN("Tian-Tian"),
MEI_JIA("Mei-Jia"),
NORA("Nora"),
HENRIK("Henrik"),
LUCIANA("Luciana"),
FELIPE("Felipe"),
CATARINA("Catarina"),
JOANA("Joana"),
IOANA("Ioana"),
LAURA("Laura"),
ALVA("Alva"),
OSKAR("Oskar"),
KANYA("Kanya"),
CEM("Cem"),
PENELOPE("Penelope"),
RAVEENA("Raveena"),
RICARDO("Ricardo"),
RUBEN("Ruben"),
RUSSELL("Russell"),
SALLI("Salli"),
SATU("Satu"),
SEOYEON("Seoyeon"),
SIN_JI("Sin-Ji"),
SORA("Sora"),
TAKUMI("Takumi"),
TARIK("Tarik"),
TATYANA("Tatyana"),
TESSA("Tessa"),
TIAN_TIAN("Tian-Tian"),
VICKI("Vicki"),
VITORIA("Vitoria"),
YELDA("Yelda"),
EMPAR("Empar"),
ZEINA("Zeina"),
ZHIYU("Zhiyu"),
ZUZANA("Zuzana"),
UNKNOWN("Unknown");

private static final Map<String, VoiceName> voiceNameIndex = new HashMap<>();
Expand Down
7 changes: 7 additions & 0 deletions src/test/java/com/nexmo/client/voice/VoiceNameTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ public void testEachVoiceNameForCorrectCapitalization() {
assertEquals(VoiceName.NORA.getDisplayName(), "Nora");
assertEquals(VoiceName.HENRIK.getDisplayName(), "Henrik");
assertEquals(VoiceName.LUCIANA.getDisplayName(), "Luciana");
assertEquals(VoiceName.LUCIA.getDisplayName(), "Lucia");
assertEquals(VoiceName.FELIPE.getDisplayName(), "Felipe");
assertEquals(VoiceName.CATARINA.getDisplayName(), "Catarina");
assertEquals(VoiceName.JOANA.getDisplayName(), "Joana");
Expand All @@ -125,6 +126,12 @@ public void testEachVoiceNameForCorrectCapitalization() {
assertEquals(VoiceName.CEM.getDisplayName(), "Cem");
assertEquals(VoiceName.YELDA.getDisplayName(), "Yelda");
assertEquals(VoiceName.EMPAR.getDisplayName(), "Empar");
assertEquals(VoiceName.VICKI.getDisplayName(), "Vicki");
assertEquals(VoiceName.ADITI.getDisplayName(), "Aditi");
assertEquals(VoiceName.TAKUMI.getDisplayName(), "Takumi");
assertEquals(VoiceName.LEA.getDisplayName(), "Lea");
assertEquals(VoiceName.ZEINA.getDisplayName(), "Zeina");
assertEquals(VoiceName.ZHIYU.getDisplayName(), "Zhiyu");
assertEquals(VoiceName.UNKNOWN.getDisplayName(), "Unknown");
}
}

0 comments on commit 1146701

Please sign in to comment.