ReviewOS

also looking at this

meemalabs/laravel-text-to-speech

feat: add 60db text-to-speech driver

#46
Open uditgoenka wants to merge feat/60db-tts into main
5 files +403 -9
config/config.phpmodified+12-6
Changes to config/config.php
@@ -16,7 +16,7 @@ return [
1616
1717 /**
1818 * The driver to be used for converting text-to-speech
19 * You can choose polly, or null as of now.
19 * You can choose polly, sixtydb, or null.
2020 */
2121 'driver' => env('TTS_DRIVER', 'polly'),
2222
@@ -61,12 +61,18 @@ return [
6161 * @see \Cion\TextToSpeech\Contracts\Source
6262 */
6363 'sources' => [
64 'text' => \Cion\TextToSpeech\Sources\TextSource::class,
65 'path' => \Cion\TextToSpeech\Sources\PathSource::class,
64 'text' => \Cion\TextToSpeech\Sources\TextSource::class,
65 'path' => \Cion\TextToSpeech\Sources\PathSource::class,
6666 'website' => \Cion\TextToSpeech\Sources\WebsiteSource::class,
6767 ],
6868
6969 'services' => [
70 'sixtydb' => [
71 'api_key' => env('SIXTYDB_API_KEY', ''),
72 'voice_id' => env('SIXTYDB_VOICE_ID', ''),
73 'model_id' => env('SIXTYDB_MODEL_ID'),
74 'speed' => 1.0,
75 ],
7076 'polly' => [
7177 /**
7278 * Voice ID to use for the synthesis.
formatting only · 12 hidden lines
Changes to config/config.php
@@ -94,9 +100,9 @@ return [ formatting only
94100 * IAM Credentials from AWS.
95101 */
96102 'credentials' => [
97 'key' => env('AWS_ACCESS_KEY_ID', ''),
98 'secret' => env('AWS_SECRET_ACCESS_KEY', ''),
99 'token' => env('AWS_SESSION_TOKEN', ''),
103 'key' => env('AWS_ACCESS_KEY_ID', ''),
104 'secret' => env('AWS_SECRET_ACCESS_KEY', ''),
105 'token' => env('AWS_SESSION_TOKEN', ''),
100106 ],
101107
102108 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),