Download the PHP package newage/audio-manager without Composer
On this page you can find all versions of the php package newage/audio-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download newage/audio-manager
More information about newage/audio-manager
Files in newage/audio-manager
Download newage/audio-manager
More information about newage/audio-manager
Files in newage/audio-manager
Vendor newage
Package audio-manager
Short Description Audio Manager for text-to-speech cloud services
License MIT
Homepage https://github.com/newage/AudioManager
Package audio-manager
Short Description Audio Manager for text-to-speech cloud services
License MIT
Homepage https://github.com/newage/AudioManager
Please rate this library. Is it a good library?
Informations about the package audio-manager
AudioManager
A manager for a popular text-to-speech cloud services (Google, Ivona, Amazon Polly...) on PHP. This project uses PSR-4 autoloading standard, PSR-2 coding style
Install
Via Composer
Usage
Setup an Google
adapter
$adapter = new \AudioManager\Adapter\Google();
$adapter->getOptions()->setLanguage('en');
$adapter->getOptions()->setEncoding('UTF-8');
Setup an Ivona
adapter
$adapter = new \AudioManager\Adapter\Ivona();
$adapter->getOptions()->setAccessKey('...');
$adapter->getOptions()->setSecretKey('...');
$adapter->getOptions()->setLanguage('...'); //Default 'en-US'
$adapter->getOptions()->setVoice('...'); //Default 'Salli'
$adapter->getOptions()->setOutputFormatCodec('...'); //Default 'MP3'
$adapter->getOptions()->setOutputSampleRate('...'); //Default '22050'
$adapter->getOptions()->setParametersRate('...'); //Default 'slow'
Setup an Amazon Polly
adapter
$adapter = new \AudioManager\Adapter\Polly();
$adapter->getOptions()->initialize()
->setVersion('latest')
->setRegion('us-west-2')
->setCredentials()
->setKey('...')
->setSecret('...');
$adapter->getOptions()->setOutputFormat('...'); //Default 'mp3'
$adapter->getOptions()->setLexiconNames('...');
$adapter->getOptions()->setSampleRate('...'); //Default '16000'
$adapter->getOptions()->setTextType('...'); //Default 'text'
$adapter->getOptions()->setVoiceId('...'); //Default 'Salli'
Setup an adapter to manager
$manager = new \AudioManager\Manager($adapter);
$audioContent = $manager->read('text');
$manager->getHeaders();
Contributing
Please see CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Vadim Leontiev
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of audio-manager with dependencies
PHP Build Version
Package Version
The package newage/audio-manager contains the following files
Loading the files please wait ....