Documentation

TextToSpeech
in package
implements UriInterface

FinalYes

Convert a string of a text to spoken word audio.

Table of Contents

Interfaces

UriInterface
An interface for objects that repsent some type of Uri.

Properties

$directory  : DirectoryInterface
$provider  : ProviderInterface
$text  : string

Methods

__construct()  : mixed
Create a TextToSpeech object.
getMetaData()  : string
Get the metadata xml for this message.
getUri()  : string
Get the URI for this message.

Properties

$provider

private ProviderInterface $provider

The text to speech provider.

Methods

__construct()

Create a TextToSpeech object.

public __construct(string $text, DirectoryInterface $directory, ProviderInterface $provider) : mixed
Parameters
$text : string

The text to convert

$directory : DirectoryInterface

The directory to store the audio file in

$provider : ProviderInterface

The tts provider to use

getMetaData()

Get the metadata xml for this message.

public getMetaData() : string
Return values
string

getUri()

Get the URI for this message.

public getUri() : string

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

Return values
string
On this page

Search results