struct

AI::Provider::TranscriptionModel::Result

Inherits JSON::Serializable < Struct < Value < Object

The result of a transcription model doGenerate call.

Constructors

new(text : String, segments : Array(Segment), warnings : Array(Shared::Warning), response : ResultResponse, language : String | Nil = nil, duration_in_seconds : Float64 | Nil = nil, request : ResultRequest | Nil = nil, provider_metadata : ProviderMetadata | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

duration_in_seconds

The total duration of the audio file in seconds.

Source
language

The detected language of the audio content (ISO-639-1 code).

Source
provider_metadata

Additional provider-specific metadata.

Source
request

Optional request information for telemetry and debugging.

Source
response

Response information for telemetry and debugging.

Source
segments

Array of transcript segments with timing information.

Source
text

The complete transcribed text from the audio.

Source
warnings

Warnings for the call, e.g. unsupported settings.

Source