Skip to content

Commit fc201ff

Browse files
committed
Updates readme with Amazon Polly driver documentation.
1 parent f4f7a72 commit fc201ff

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Synthesizer provides an elegant interface to synthesize text to speech (audio ur
88

99
**Supported Providers:**
1010

11+
* Amazon Polly
1112
* Google
1213
* IBM Watson
1314
* iSpeech
@@ -23,6 +24,12 @@ Alternatively, add `"dayrev/synthesizer": "^1.0"` to your composer.json file.
2324

2425
## Usage
2526
```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+
2633
$synthesizer = DayRev\Synthesizer\Provider::instance('google');
2734
$content = $synthesizer->synthesize($text);
2835

@@ -43,7 +50,7 @@ To run the test suite, run the following commands from the root directory:
4350

4451
```
4552
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
4754
```
4855

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.

0 commit comments

Comments
 (0)