SpeechRate
Class SpeechRate
Table of Contents
Methods
- __construct() : mixed
- SpeechRate constructor.
- create() : static
- Create instance.
- getBaseInterval() : int
- Get base interval in seconds.
- getDuration() : int
- Return speech duration of text.
- getList() : array<string|int, mixed>
- Get list of rates: chars in 30 seconds.
- withSpeed() : $this
- With speed.
- withText() : $this
- With text.
Methods
__construct()
SpeechRate constructor.
public
__construct() : mixed
create()
Create instance.
public
static create() : static
Return values
staticgetBaseInterval()
Get base interval in seconds.
public
static getBaseInterval() : int
Return values
intgetDuration()
Return speech duration of text.
public
getDuration() : int
Return values
intgetList()
Get list of rates: chars in 30 seconds.
public
static getList() : array<string|int, mixed>
Return values
array<string|int, mixed>withSpeed()
With speed.
public
withSpeed([string|null $speedId = null ]) : $this
Parameters
- $speedId : string|null = null
Return values
$thiswithText()
With text.
public
withText([string $text = '' ]) : $this
Parameters
- $text : string = ''