2017 © Pedro Peláez
 

library gtts

image

artemsk/gtts

  • Friday, December 2, 2016
  • by artemsk
  • Repository
  • 1 Watchers
  • 0 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 5 % Grown

The README.md

  • 32-bit systems are not supported due to integer size limitations.

Example:, (*1)

TalkingHead::make('Hello World!', 'en')->speak(true);

or, (*2)

$talking = new TalkingHead;
$talking->text('Hello World!')->language('en')->speak();
$talking->download(); // get download response
$talking->getMp3();   // get mp3 filename, also TalkingHead::mp3('Hello World', 'en');
$talking->flush();    // clear 'storage' folder, also TalkingHead::clean();

Configuration:, (*3)

$talking->enc($encoding); // encoding, default: UTF-8
$talking->language($language); // language, default: en
$talking->path($path); // storage path
$talking->sleep($seconds); // pause in seconds before requesting next url
$talking->split($length); // split text by chunks, default: 100
$talking->text($text); // text

Helpers:, (*4)

$talking->raw($raw); // additional url parameter
$talking->writeToMp3(); // just create mp3
$talking->getProcessedText();
$talking->getTk($text); // get 'tk' parameter for text
$talking->getTkk(); // get token
$talking->getUrls();  // list of urls for tts
$talking->getSpentTime(); // Symfony StopwatchEvent to measure spent time for downloading

The Versions

02/12 2016

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

by Artyom Troshin

02/12 2016

v1.0.4

1.0.4.0

  Sources   Download

MIT

The Requires

 

by Artyom Troshin

31/12 2015

v1.0.3

1.0.3.0

  Sources   Download

MIT

The Requires

 

by Artyom Troshin

31/12 2015

v1.0.2

1.0.2.0

  Sources   Download

MIT

The Requires

 

by Artyom Troshin

30/12 2015

v1.0.1

1.0.1.0

  Sources   Download

MIT

The Requires

 

by Artyom Troshin

30/12 2015

v1.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

by Artyom Troshin