\duncan3dc\Sonos\TracksTextToSpeech

Convert a string of a text to spoken word audio.

Summary

Methods
Properties
Constants
__construct()
getUri()
getMetaData()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$directory
$text
$provider
N/A

Properties

$text

$text : string

Type

string — The text to convert.

$provider

$provider : \duncan3dc\Speaker\Providers\ProviderInterface

Type

\duncan3dc\Speaker\Providers\ProviderInterface — The text to speech provider.

Methods

__construct()

__construct(string  $text, \duncan3dc\Sonos\Interfaces\Utils\DirectoryInterface  $directory, \duncan3dc\Speaker\Providers\ProviderInterface  $provider) 

Create a TextToSpeech object.

Parameters

string $text

The text to convert

\duncan3dc\Sonos\Interfaces\Utils\DirectoryInterface $directory

The directory to store the audio file in

\duncan3dc\Speaker\Providers\ProviderInterface $provider

The tts provider to use

getUri()

getUri() : string

Get the URI for this message.

If it doesn't already exist on the filesystem then the text-to-speech handler will be called.

Returns

string

getMetaData()

getMetaData() : string

Get the metadata xml for this message.

Returns

string