also looking at this
meemalabs/laravel-text-to-speech
Add engine option (standard or neural)
#27
1 file
+12
-0
| @@ -94,6 +94,7 @@ class PollyConverter implements Converter | ||
| 94 | 94 | 'VoiceId' => $this->voice($options), |
| 95 | 95 | 'OutputFormat' => $this->format($options), |
| 96 | 96 | 'TextType' => $this->textType(), |
| 97 | 'Engine' => $this->engine($options), | |
| 97 | 98 | 'SpeechMarkTypes' => $speechMarks, |
| 98 | 99 | ]; |
| 99 | 100 | |
| @@ -206,6 +207,17 @@ class PollyConverter implements Converter | ||
| 206 | 207 | return Arr::get($options, 'format', $default); |
| 207 | 208 | } |
| 208 | 209 | |
| 210 | /** | |
| 211 | * Get the engine. | |
| 212 | * | |
| 213 | * @param array $options | |
| 214 | * @return string | |
| 215 | */ | |
| 216 | protected function engine($options) | |
| 217 | { | |
| 218 | return Arr::get($options, 'engine', 'standard'); | |
| 219 | } | |
| 220 | ||
| 209 | 221 | /** |
| 210 | 222 | * Get the speech marks. |
| 211 | 223 | * |