ReviewOS

also looking at this

meemalabs/laravel-text-to-speech

Add engine option (standard or neural)

#27
Merged brianrlewis wants to merge add-engine-option into main
1 file +12 -0
src/Converters/PollyConverter.phpmodified+12-0
Changes to src/Converters/PollyConverter.php
@@ -94,6 +94,7 @@ class PollyConverter implements Converter
9494 'VoiceId' => $this->voice($options),
9595 'OutputFormat' => $this->format($options),
9696 'TextType' => $this->textType(),
97 'Engine' => $this->engine($options),
9798 'SpeechMarkTypes' => $speechMarks,
9899 ];
99100
@@ -206,6 +207,17 @@ class PollyConverter implements Converter
206207 return Arr::get($options, 'format', $default);
207208 }
208209
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
209221 /**
210222 * Get the speech marks.
211223 *