Acapela Provider
The Acapela provider uses a paid service that has a free trial option.
You must register for an account for the credentials that you pass to the constructor:
$provider = new AcapelaProvider("EVAL_VAAS", "EVAL_2643150", "y6r2fjul");
Voices
The voice used can be set via the constructor or the withVoice()
method:
$provider = new AcapelaProvider("EVAL_VAAS", "EVAL_2643150", "y6r2fjul", "Graham");
$provider = $provider->withVoice("Peter");
There is a list of voices available from Acapela.
Speed
The speed that the text is read can be set via the constructor or the withSpeed()
method:
$provider = new AcapelaProvider("EVAL_VAAS", "EVAL_2643150", "y6r2fjul", 200);
$provider = $provider->withSpeed(360);
The speed is an integer between 60 and 360