PHP Класс duncan3dc\Sonos\Tracks\TextToSpeech

Наследование: implements duncan3dc\Sonos\Tracks\UriInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$directory duncan3dc\Sonos\Directory The directory to store the audio file in.
$provider Provider The text to speech provider.
$text string The text to convert.

Открытые методы

Метод Описание
__construct ( string $text, duncan3dc\Sonos\Directory $directory, duncan3dc\Speaker\Providers\ProviderInterface $provider = null ) Create a TextToSpeech object.
getMetaData ( ) : string Get the metadata xml for this message.
getProvider ( )
getUri ( ) : string Get the URI for this message.
setLanguage ( string $language ) : static Set the language to use in the google text-to-speech call.
setProvider ( duncan3dc\Speaker\Providers\ProviderInterface $provider )

Описание методов

__construct() публичный Метод

Create a TextToSpeech object.
public __construct ( string $text, duncan3dc\Sonos\Directory $directory, duncan3dc\Speaker\Providers\ProviderInterface $provider = null )
$text string The text to convert
$directory duncan3dc\Sonos\Directory The directory to store the audio file in
$provider duncan3dc\Speaker\Providers\ProviderInterface

getMetaData() публичный Метод

Get the metadata xml for this message.
public getMetaData ( ) : string
Результат string

getProvider() публичный Метод

public getProvider ( )

getUri() публичный Метод

If it doesn't already exist on the filesystem then the text-to-speech handler will be called.
public getUri ( ) : string
Результат string

setLanguage() публичный Метод

Set the language to use in the google text-to-speech call.
public setLanguage ( string $language ) : static
$language string The language to use (eg 'en')
Результат static

setProvider() публичный Метод

public setProvider ( duncan3dc\Speaker\Providers\ProviderInterface $provider )
$provider duncan3dc\Speaker\Providers\ProviderInterface

Описание свойств

$directory защищенное свойство

The directory to store the audio file in.
protected Directory,duncan3dc\Sonos $directory
Результат duncan3dc\Sonos\Directory

$provider защищенное свойство

The text to speech provider.
protected Provider $provider
Результат Provider

$text защищенное свойство

The text to convert.
protected string $text
Результат string