2017 © Pedro Peláez
 

library audio-manager

Audio Manager for text-to-speech cloud services

image

newage/audio-manager

Audio Manager for text-to-speech cloud services

  • Tuesday, March 14, 2017
  • by newage
  • Repository
  • 3 Watchers
  • 2 Stars
  • 2,651 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 3 Open issues
  • 12 Versions
  • 28 % Grown

The README.md

AudioManager

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

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, (*2)

Install

Via Composer, (*3)

bash $ composer require newage/audio-manager, (*4)

Usage

Setup an Google adapter, (*5)

$adapter = new \AudioManager\Adapter\Google();
$adapter->getOptions()->setLanguage('en');
$adapter->getOptions()->setEncoding('UTF-8');

Setup an Ivona adapter, (*6)

$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, (*7)

$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, (*8)

$manager = new \AudioManager\Manager($adapter);
$audioContent = $manager->read('text');
$manager->getHeaders();

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*9)

Security

If you discover any security related issues, please email vadim.leontiev@gmail.com instead of using the issue tracker., (*10)

Credits

License

The MIT License (MIT). Please see License File for more information., (*11)

The Versions

14/03 2017

dev-master

9999999-dev https://github.com/newage/AudioManager

Audio Manager for text-to-speech cloud services

  Sources   Download

MIT

The Requires

 

The Development Requires

speech tts

14/03 2017

1.2.2

1.2.2.0 https://github.com/newage/AudioManager

Audio Manager for text-to-speech cloud services

  Sources   Download

MIT

The Requires

 

The Development Requires

speech tts

14/03 2017

1.2.1

1.2.1.0 https://github.com/newage/AudioManager

Audio Manager for text-to-speech cloud services

  Sources   Download

MIT

The Requires

 

The Development Requires

speech tts

07/02 2017

1.2.0

1.2.0.0 https://github.com/newage/AudioManager

Audio Manager for text-to-speech cloud services

  Sources   Download

MIT

The Requires

 

The Development Requires

speech tts

26/12 2016

1.1.1

1.1.1.0 https://github.com/newage/AudioManager

Audio Manager for text-to-speech cloud services

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

speech tts

28/05 2016

1.1.0

1.1.0.0 https://github.com/newage/AudioManager

Audio Manager for text-to-speech cloud services

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

speech tts

25/04 2016

1.0.3

1.0.3.0

Audio Manager for text-to-speech cloud services

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

speech tts

25/04 2016

1.0.2

1.0.2.0

Audio Manager for text-to-speech cloud services

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

speech tts

13/04 2016

1.0.1

1.0.1.0

Audio Manager for text-to-speech cloud services

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

speech tts

29/03 2016

1.0.0

1.0.0.0

Audio Manager for text-to-speech cloud services

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

speech tts

07/10 2015

0.0.2

0.0.2.0

Audio Manager for text-to-speech cloud services

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

speech tts

22/09 2015

0.0.1

0.0.1.0

Audio Manager for text-to-speech cloud services

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

speech tts