File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ Synthesizer provides an elegant interface to synthesize text to speech (audio ur
8
8
9
9
** Supported Providers:**
10
10
11
+ * Amazon Polly
11
12
* Google
12
13
* IBM Watson
13
14
* iSpeech
@@ -23,6 +24,12 @@ Alternatively, add `"dayrev/synthesizer": "^1.0"` to your composer.json file.
23
24
24
25
## Usage
25
26
``` php
27
+ $provider = Provider::instance('amazon', [
28
+ 'key' => 'YOUR_AMAZON_API_KEY',
29
+ 'secret' => 'YOUR_AMAZON_API_SECRET',
30
+ ]);
31
+ $content = $synthesizer->synthesize($text);
32
+
26
33
$synthesizer = DayRev\Synthesizer\Provider::instance('google');
27
34
$content = $synthesizer->synthesize($text);
28
35
@@ -43,7 +50,7 @@ To run the test suite, run the following commands from the root directory:
43
50
44
51
```
45
52
composer install
46
- vendor/bin/phpunit -d ibm_username=YOUR_IBM_USERNAME -d ibm_password=YOUR_IBM_PASSWORD -d ispeech_api_key=YOUR_ISPEECH_API_KEY
53
+ vendor/bin/phpunit -d ibm_username=YOUR_IBM_USERNAME -d ibm_password=YOUR_IBM_PASSWORD -d ispeech_api_key=YOUR_ISPEECH_API_KEY -d amazon_api_key=YOUR_AMAZON_API_KEY -d amazon_api_secret=YOUR_AMAZON_API_SECRET
47
54
```
48
55
49
- > ** Note:** A valid iSpeech API key is required when running the integration tests.
56
+ > ** Note:** Provider keys and values are required when running the integration tests but the values don't have to be valid .
You can’t perform that action at this time.
0 commit comments