TranscriptionResponse
class TranscriptionResponse implements Stringable
Traits
Properties
| Response|null | $raw | The raw HTTP response, if available for the provider. |
from HasRawResponse |
| string | $text | ||
| TranscriptionSegment> | $segments | ||
| TranscriptionUsage | $usage | ||
| Meta | $meta |
Methods
from
HasRawResponse
array
__serialize()
Prepare the instance for serialization, discarding the unserializable raw HTTP response.
from
HasRawResponse
__construct(string $text, Collection $segments, TranscriptionUsage $usage, Meta $meta)
Create a transcription response.
string
__toString()
Get the string representation of the transcription.
Details
in
HasRawResponse at line 19
HasRawResponse
withRawResponse(Response|null $response)
Set the raw HTTP response.
in
HasRawResponse at line 29
array
__serialize()
Prepare the instance for serialization, discarding the unserializable raw HTTP response.
at line 32
__construct(string $text, Collection $segments, TranscriptionUsage $usage, Meta $meta)
Create a transcription response.
at line 47
string
__toString()
Get the string representation of the transcription.