also looking at this
meemalabs/laravel-text-to-speech
Added support for speech marks.
#26
7 files
+125
-19
| @@ -53,6 +53,10 @@ $path = TextToSpeech::language('ja-JP') | ||
| 53 | 53 | // use the SSML text type in the convert() method. |
| 54 | 54 | $path = TextToSpeech::ssml() |
| 55 | 55 | ->convert('<speak>Hi There <break /> This is SSML syntax</speak'); |
| 56 | ||
| 57 | // using speech marks. | |
| 58 | $output = TextToSpeech::speechMarks(['sentence', 'word', 'viseme', 'ssml']) | |
| 59 | ->convert('This is a test'); // This will return an array. | |
| 56 | 60 | ``` |
| 57 | 61 | |
| 58 | 62 | ## Installation |
| @@ -159,7 +163,7 @@ return [ | ||
| 159 | 163 | 'polly' => [ |
| 160 | 164 | /** |
| 161 | 165 | * Voice ID to use for the synthesis. |
| 162 | * You may use any of the following: | |
| 166 | * You may use any of the following:. | |
| 163 | 167 | * |
| 164 | 168 | * Aditi, Amy, Astrid, Bianca, Brian, Camila, Carla, Carmen, Celine, |
| 165 | 169 | * Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa, Filiz, |
| @@ -171,6 +175,14 @@ return [ | ||
| 171 | 175 | */ |
| 172 | 176 | 'voice_id' => env('AWS_VOICE_ID', 'Amy'), |
| 173 | 177 | |
| 178 | /** | |
| 179 | * You can request any or all of the speech mark types, but leave it empty if you don't use speech marks. | |
| 180 | * You may add any of the following:. | |
| 181 | * | |
| 182 | * sentence, word, viseme, ssml | |
| 183 | */ | |
| 184 | 'speech_marks' => [], | |
| 185 | ||
| 174 | 186 | /** |
| 175 | 187 | * IAM Credentials from AWS. |
| 176 | 188 | */ |