struct AI::Provider::TranscriptionModel::Result

Overview

The result of a transcription model doGenerate call.

Included Modules

Defined in:

ai/provider/transcription_model/transcription_model.cr

Constructors

Instance Method Summary

Constructor Detail

def self.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) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def duration_in_seconds : Float64 | Nil #

The total duration of the audio file in seconds.


[View source]
def language : String | Nil #

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


[View source]
def provider_metadata : ProviderMetadata | Nil #

Additional provider-specific metadata.


[View source]
def request : ResultRequest | Nil #

Optional request information for telemetry and debugging.


[View source]
def response : ResultResponse #

Response information for telemetry and debugging.


[View source]
def segments : Array(Segment) #

Array of transcript segments with timing information.


[View source]
def text : String #

The complete transcribed text from the audio.


[View source]
def warnings : Array(Shared::Warning) #

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


[View source]