\duncan3dc\SpeakerTextToSpeechInterface

Convert a string of a text to spoken word audio.

Summary

Methods
Constants
getAudioData()
generateFilename()
save()
getFile()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getAudioData()

getAudioData() : string

Get the audio for this text.

Returns

string —

The audio data

generateFilename()

generateFilename() : string

Generate the filename to be used for this text.

Returns

string

save()

save(string  $filename) : $this

Create an audio file on the filesystem.

Parameters

string $filename

The filename to write to

Returns

$this

getFile()

getFile(string  $path = null) : string

Store the audio file on the filesystem.

Parameters

string $path

The path to the directory to store the file in

Returns

string —

The full path and filename