$text
$text : string
Convert a string of a text to spoken word audio.
$provider : \duncan3dc\Speaker\Providers\ProviderInterface
__construct(string $text, \duncan3dc\Speaker\Providers\ProviderInterface $provider)
Create a new instance.
string | $text | The text to convert |
\duncan3dc\Speaker\Providers\ProviderInterface | $provider |
getFile(string $path = null) : string
Store the audio file on the filesystem.
This function uses caching so if the file already exists a call to the text-to-speech service is not made.
string | $path | The path to the directory to store the file in |
The full path and filename