ReviewOS

also looking at this

meemalabs/laravel-text-to-speech

Require aws php sdk

#24
Merged luigel wants to merge docs-change-return-type into main
2 files +6 -6
src/Converters/PollyConverter.phpmodified+5-5
Changes to src/Converters/PollyConverter.php
@@ -18,7 +18,7 @@ class PollyConverter implements Converter
1818 /**
1919 * Client instance of Polly.
2020 *
21 * @var \Aws\Polly\PollyClient
21 * @var PollyClient
2222 */
2323 protected $client;
2424
@@ -163,11 +163,11 @@ class PollyConverter implements Converter
163163 /**
164164 * Get the text type.
165165 *
166 * @return void
166 * @return string
167167 */
168168 protected function textType()
169169 {
170 $default = config('tts.text_type', 'text');
170 $default = (string) config('tts.text_type', 'text');
171171
172172 return $this->textType ?? $default;
173173 }
formatting only · 8 hidden lines
Changes to src/Converters/PollyConverter.php
@@ -185,7 +185,7 @@ class PollyConverter implements Converter formatting only
185185 /**
186186 * Get the audio format.
187187 *
188 * @param array $options
188 * @param array $options
189189 * @return string
190190 */
191191 protected function format($options)
Changes to src/Converters/PollyConverter.php
@@ -198,7 +198,7 @@ class PollyConverter implements Converter
198198 /**
199199 * Get the content of the result from AWS Polly.
200200 *
201 * @param mixed $result
201 * @param Result $result
202202 * @return mixed
203203 */
204204 protected function getResultContent($result)