class TranscriptionSegment implements Arrayable, JsonSerializable

Methods

__construct(string $text, string $speaker, float $startSeconds, float $endSeconds)

Create a transcription segment.

array
toArray()

Get the instance as an array.

array
jsonSerialize()

Get the JSON serializable representation of the instance.

Details

at line 15
__construct(string $text, string $speaker, float $startSeconds, float $endSeconds)

Create a transcription segment.

Parameters

string $text
string $speaker
float $startSeconds
float $endSeconds

at line 26
array toArray()

Get the instance as an array.

Return Value

array

at line 39
array jsonSerialize()

Get the JSON serializable representation of the instance.

Return Value

array