Speaker A PHP library to convert text to speech using various web services

Getting Started

Providers

Voice RSS Provider

View the API Documentation for this class

The Voice RSS provider uses a paid service that has a free limited option.

You must register for an apikey that you pass to the constructor:

$provider = new VoiceRssProvider("sp39483478dhshdfs");

The language used can be set via the constructor or the withLanguage() method:

$provider = new VoiceRssProvider("sp39483478dhshdfs", "en-gb");

$provider = $provider->withLanguage("fr-fr");

The speed that the text is read can be set via the constructor or the withSpeed() method:

$provider = new VoiceRssProvider("sp39483478dhshdfs", "en-gb", -10);

$provider = $provider->withSpeed(10);