Voice RSS Provider
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);
The voice that the text is read with can be set via the constructor or the withVoice()
method:
$provider = new VoiceRssProvider("sp39483478dhshdfs", "en-gb", 0, "Harry");
$provider = $provider->withVoice("Harry");