also looking at this
meemalabs/laravel-text-to-speech
feat: add 60db text-to-speech driver
#46
5 files
+403
-9
| @@ -16,7 +16,7 @@ return [ | ||
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * 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. | |
| 20 | 20 | */ |
| 21 | 21 | 'driver' => env('TTS_DRIVER', 'polly'), |
| 22 | 22 | |
| @@ -61,12 +61,18 @@ return [ | ||
| 61 | 61 | * @see \Cion\TextToSpeech\Contracts\Source |
| 62 | 62 | */ |
| 63 | 63 | '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, | |
| 66 | 66 | 'website' => \Cion\TextToSpeech\Sources\WebsiteSource::class, |
| 67 | 67 | ], |
| 68 | 68 | |
| 69 | 69 | '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 | ], | |
| 70 | 76 | 'polly' => [ |
| 71 | 77 | /** |
| 72 | 78 | * Voice ID to use for the synthesis. |
formatting only · 12 hidden lines
| @@ -94,9 +100,9 @@ return [ formatting only | ||
| 94 | 100 | * IAM Credentials from AWS. |
| 95 | 101 | */ |
| 96 | 102 | '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', ''), | |
| 100 | 106 | ], |
| 101 | 107 | |
| 102 | 108 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), |