\duncan3dc\Speaker\ProvidersProviderInterface

Convert a string of a text to spoken word audio.

Summary

Methods
Constants
getFormat()
getOptions()
textToSpeech()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getFormat()

getFormat() : string

Get the format of this audio.

Returns

string —

(mp3/wav)

getOptions()

getOptions() : array

Get the current options.

This is used in caching to determine if we have sent a request with these options before and can use the previous result.

Returns

array

textToSpeech()

textToSpeech(string  $text) : string

Convert the specified text to audio.

Parameters

string $text

The text to convert

Returns

string —

The audio data