Skip to content

Commit 02fceb2

Browse files
author
Karthikeyan
authored
Merge pull request awslabs#271 from awslabs/sample-updates
Re-organized voice types and added missing voices. Ensured that the U…
2 parents 0b4f686 + f78c132 commit 02fceb2

File tree

1 file changed

+92
-61
lines changed

1 file changed

+92
-61
lines changed

Polly-Sample/Swift/PollySample/ViewController.swift

Lines changed: 92 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -24,76 +24,107 @@ class ViewController: UIViewController, UITextViewDelegate, UIPickerViewDelegate
2424
@IBOutlet weak var stackView: UIStackView!
2525

2626
let sampleTexts: [AWSPollyVoiceId: String] = [
27-
AWSPollyVoiceId.gwyneth: "Helo 'na! Gwyneth ydw i. Teipiwch unrhywbeth yma a fe wna i ei ddarllen.",
28-
27+
//Danish
2928
AWSPollyVoiceId.mads: "Hej! Mit navn er Mads. Jeg kan oplæse enhver tekst, som du skriver her.",
3029
AWSPollyVoiceId.naja: "Hej! Mit navn er Naja. Jeg kan oplæse enhver tekst, som du skriver her.",
3130

32-
AWSPollyVoiceId.hans: "Hallo, mein Name ist Hans. Ich werde jeden Text vorlesen, den Sie eingeben.",
31+
//Dutch
32+
AWSPollyVoiceId.lotte: "Hoi! mijn naam is Lotte. Ik lees elke tekst voor die je hier invoert.",
33+
AWSPollyVoiceId.ruben: "Hoi! mijn naam is Ruben. Ik lees elke tekst voor die je hier invoert.",
34+
35+
//English (Australian)
36+
AWSPollyVoiceId.nicole: "Hi there, my name is Nicole. I will read any text you type here.",
37+
AWSPollyVoiceId.russell: "Hi there, my name is Russel. I will read any text you type here.",
38+
39+
//English (British)
40+
AWSPollyVoiceId.amy: "Hi! My name is Amy. I will read any text you type here.",
41+
AWSPollyVoiceId.brian: "Hi! My name is Brian. I will read any text you type here.",
42+
AWSPollyVoiceId.emma: "Hi! My name is Emma. I will read any text you type here.",
43+
44+
//English (Indian)
45+
AWSPollyVoiceId.raveena: "Hi! My name is Raveena. I can read any text you type here.",
46+
AWSPollyVoiceId.aditi: "Hi! My name is Aditi. I can read any text you type here.",
47+
48+
//English (US)
49+
AWSPollyVoiceId.ivy: "Hi! My name is Ivy. I will read any text you type here.",
50+
AWSPollyVoiceId.joanna: "Hi! My name is Joanna. I will read any text you type here.",
51+
AWSPollyVoiceId.joey: "Hi! My name is Joey. I will read any text you type here.",
52+
AWSPollyVoiceId.justin: "Hi! My name is Justin. I will read any text you type here.",
53+
AWSPollyVoiceId.kendra: "Hi! My name is Kendra. I will read any text you type here.",
54+
AWSPollyVoiceId.kimberly: "Hi! My name is Kimberly. I will read any text you type here.",
55+
AWSPollyVoiceId.matthew: "Hi! My name is Matthew. I will read any text you type here.",
56+
AWSPollyVoiceId.salli: "Hi! My name is Salli. I will read any text you type here.",
57+
58+
//English (Welsh)
59+
AWSPollyVoiceId.geraint: "Hi! I'm Geraint. I can read any text you type here",
60+
61+
//French
62+
AWSPollyVoiceId.celine: "Salut, je m'appelle Céline. Je vais lire le texte que vous écrirez ici.",
63+
AWSPollyVoiceId.mathieu: "Salut, je m'appelle Mathieu. Je vais lire le texte que vous écrirez ici.",
64+
65+
//French (Canadian)
66+
AWSPollyVoiceId.chantal: "Salut, je m'appelle Chantal. Je vais lire le texte que vous écrirez ici.",
67+
68+
//German
69+
AWSPollyVoiceId.hans: "Hallo, mein Name ist Hans. Ich werde jeden Text vorlesen, den Sie eingeben.",
3370
AWSPollyVoiceId.marlene: "Hallo, mein Name ist Marlene. Ich werde jeden Text vorlesen, den Sie eingeben.",
34-
35-
AWSPollyVoiceId.nicole: "Hi there, my name is Nicole. I will read any text you type here.",
36-
AWSPollyVoiceId.russell: "Hi there, my name is Russel. I will read any text you type here.",
37-
38-
AWSPollyVoiceId.amy: "Hi! My name is Amy. I will read any text you type here.",
39-
AWSPollyVoiceId.brian: "Hi! My name is Brian. I will read any text you type here.",
40-
AWSPollyVoiceId.emma: "Hi! My name is Emma. I will read any text you type here.",
41-
42-
AWSPollyVoiceId.geraint: "Hi! I'm Geraint. I can read any text you type here",
43-
44-
AWSPollyVoiceId.raveena: "Hi! My name is Raveena. I can read any text you type here.",
45-
46-
AWSPollyVoiceId.ivy: "Hi! My name is Ivy. I will read any text you type here.",
47-
AWSPollyVoiceId.joanna: "Hi! My name is Joanna. I will read any text you type here.",
48-
AWSPollyVoiceId.joey: "Hi! My name is Joey. I will read any text you type here.",
49-
AWSPollyVoiceId.justin: "Hi! My name is Justin. I will read any text you type here.",
50-
AWSPollyVoiceId.kendra: "Hi! My name is Kendra. I will read any text you type here.",
51-
AWSPollyVoiceId.kimberly: "Hi! My name is Kimberly. I will read any text you type here.",
52-
AWSPollyVoiceId.salli: "Hi! My name is Salli. I will read any text you type here.",
53-
54-
AWSPollyVoiceId.conchita: "Hola! Mi nombre es Conchita. Puedo leer cualquier texto que introduzcas aquí.",
71+
AWSPollyVoiceId.vicki: "Hallo, mein Name ist Vicki. Ich werde jeden Text vorlesen, den Sie eingeben.",
72+
73+
//Icelandic
74+
AWSPollyVoiceId.dora: "Ég heiti Dóra. Ég les upphátt allan texta sem þú skrifar hér.",
75+
AWSPollyVoiceId.karl: "Ég heiti Karl. Ég les upphátt allan texta sem þú skrifar hér.",
76+
77+
//Italian
78+
AWSPollyVoiceId.carla: "Ciao, mi chiamo Carla. Leggerò qualsiasi testo che digiterai qui.",
79+
AWSPollyVoiceId.giorgio: "Ciao, mi chiamo Giorgio. Leggerò qualsiasi testo che digiterai qui.",
80+
81+
//Japanese
82+
AWSPollyVoiceId.mizuki: "はじめまして。ミズキです。読みたいテキストを入力してください。",
83+
AWSPollyVoiceId.takumi: "はじめまして。ミズキです。読みたいテキストを入力してください。",
84+
85+
//Korean
86+
AWSPollyVoiceId.seoyeon: "안녕하세요? 외국어를 구사하십니까? 이 세상에는 수많은 언어들이 있답니다。",
87+
88+
//Norwegian
89+
AWSPollyVoiceId.liv: "Hei! Jeg heter Liv. Skriv inn noe her, så leser jeg det opp.",
90+
91+
//Polish
92+
AWSPollyVoiceId.ewa: "Cześć, mam na imię Ewa. Przeczytam każdy tekst, który tutaj wpiszesz.",
93+
AWSPollyVoiceId.jacek: "Cześć, mam na imię Jacek. Przeczytam każdy tekst, który tutaj wpiszesz.",
94+
AWSPollyVoiceId.jan: "Cześć, mam na imię Jan. Przeczytam każdy tekst, który tutaj wpiszesz.",
95+
AWSPollyVoiceId.maja: "Cześć, mam na imię Maja. Przeczytam każdy tekst, który tutaj wpiszesz.",
96+
97+
//Portugese (Brazilian)
98+
AWSPollyVoiceId.ricardo: "Olá, meu nome é Ricardo. Eu posso ler qualquer texto que você digitar aqui.",
99+
AWSPollyVoiceId.vitoria: "Olá, meu nome é Vitória. Eu posso ler qualquer texto que você digitar aqui.",
100+
101+
//Portugese (Europian)
102+
AWSPollyVoiceId.cristiano: "Olá! O meu nome é Cristiano. Vou ler o texto que escrever aqui.",
103+
AWSPollyVoiceId.ines: "Olá! O meu nome é Inês. Vou ler o texto que escrever aqui.",
104+
105+
//Romanian
106+
AWSPollyVoiceId.carmen: "Bună, numele meu este Carmen. Pot citi orice text introdus aici.",
107+
108+
//Russian
109+
AWSPollyVoiceId.maxim: "Привет! Меня зовут Максим. Я прочитаю любой текст который вы введете здесь.",
110+
AWSPollyVoiceId.tatyana: "Привет! Меня зовут Татьяна. Я прочитаю любой текст который вы введете здесь.",
111+
112+
//Spanish (Castilian)
113+
AWSPollyVoiceId.conchita: "Hola! Mi nombre es Conchita. Puedo leer cualquier texto que introduzcas aquí.",
55114
AWSPollyVoiceId.enrique: "Hola! Mi nombre es Enrique. Puedo leer cualquier texto que introduzcas aquí.",
56115

116+
//Spanish (Latin American)
57117
AWSPollyVoiceId.miguel: "Hola! Mi nombre es Miguel. Puedo leer cualquier texto que introduzcas aquí.",
58118
AWSPollyVoiceId.penelope: "Hola! Mi nombre es Penelope. Puedo leer cualquier texto que introduzcas aquí.",
59-
60-
AWSPollyVoiceId.mizuki: "はじめまして。ミズキです。読みたいテキストを入力してください。",
61-
62-
AWSPollyVoiceId.chantal: "Salut, je m'appelle Chantal. Je vais lire le texte que vous écrirez ici.",
63-
64-
AWSPollyVoiceId.celine: "Salut, je m'appelle Céline. Je vais lire le texte que vous écrirez ici.",
65-
AWSPollyVoiceId.mathieu: "Salut, je m'appelle Mathieu. Je vais lire le texte que vous écrirez ici.",
66-
67-
AWSPollyVoiceId.dora: "Ég heiti Dóra. Ég les upphátt allan texta sem þú skrifar hér.",
68-
AWSPollyVoiceId.karl: "Ég heiti Karl. Ég les upphátt allan texta sem þú skrifar hér.",
69-
70-
AWSPollyVoiceId.carla: "Ciao, mi chiamo Carla. Leggerò qualsiasi testo che digiterai qui.",
71-
AWSPollyVoiceId.giorgio: "Ciao, mi chiamo Giorgio. Leggerò qualsiasi testo che digiterai qui.",
72-
73-
AWSPollyVoiceId.liv: "Hei! Jeg heter Liv. Skriv inn noe her, så leser jeg det opp.",
74-
75-
AWSPollyVoiceId.lotte: "Hoi! mijn naam is Lotte. Ik lees elke tekst voor die je hier invoert.",
76-
AWSPollyVoiceId.ruben: "Hoi! mijn naam is Ruben. Ik lees elke tekst voor die je hier invoert.",
77-
78-
AWSPollyVoiceId.ewa: "Cześć, mam na imię Ewa. Przeczytam każdy tekst, który tutaj wpiszesz.",
79-
AWSPollyVoiceId.jacek: "Cześć, mam na imię Jacek. Przeczytam każdy tekst, który tutaj wpiszesz.",
80-
AWSPollyVoiceId.jan: "Cześć, mam na imię Jan. Przeczytam każdy tekst, który tutaj wpiszesz.",
81-
AWSPollyVoiceId.maja: "Cześć, mam na imię Maja. Przeczytam każdy tekst, który tutaj wpiszesz.",
82-
83-
AWSPollyVoiceId.ricardo: "Olá, meu nome é Ricardo. Eu posso ler qualquer texto que você digitar aqui.",
84-
AWSPollyVoiceId.vitoria: "Olá, meu nome é Vitória. Eu posso ler qualquer texto que você digitar aqui.",
85-
86-
AWSPollyVoiceId.cristiano: "Olá! O meu nome é Cristiano. Vou ler o texto que escrever aqui.",
87-
AWSPollyVoiceId.ines: "Olá! O meu nome é Inês. Vou ler o texto que escrever aqui.",
88-
89-
AWSPollyVoiceId.carmen: "Bună, numele meu este Carmen. Pot citi orice text introdus aici.",
90-
91-
AWSPollyVoiceId.maxim: "Привет! Меня зовут Максим. Я прочитаю любой текст который вы введете здесь.",
92-
AWSPollyVoiceId.tatyana: "Привет! Меня зовут Татьяна. Я прочитаю любой текст который вы введете здесь.",
93-
119+
120+
//Swedish
94121
AWSPollyVoiceId.astrid: "Hejsan! Jag heter Astrid och läser upp det som skrivs här.",
95122

96-
AWSPollyVoiceId.filiz: "Merhaba, benim adım Filiz. Buraya girdiğiniz her metni okuyabilirim."
123+
//Turkish
124+
AWSPollyVoiceId.filiz: "Merhaba, benim adım Filiz. Buraya girdiğiniz her metni okuyabilirim.",
125+
126+
//Welsh
127+
AWSPollyVoiceId.gwyneth: "Helo 'na! Gwyneth ydw i. Teipiwch unrhywbeth yma a fe wna i ei ddarllen."
97128
]
98129

99130
var originalConstraint: CGFloat!
@@ -150,7 +181,7 @@ class ViewController: UIViewController, UITextViewDelegate, UIPickerViewDelegate
150181
}
151182

152183
return nil
153-
}
184+
}.waitUntilFinished()
154185

155186
// Handle keyboard changing frame
156187
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillChange(notification:)), name: .UIKeyboardWillChangeFrame, object: nil)

0 commit comments

Comments
 (0)