struct
AI::Provider::TranscriptionModel::Result
- AI::Provider::TranscriptionModel::Result
- Struct
- Value
- Object
Overview
The result of a transcription model doGenerate call.
Included Modules
- JSON::Serializable
Defined in:
ai/provider/transcription_model/transcription_model.crConstructors
- .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)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#duration_in_seconds : Float64 | Nil
The total duration of the audio file in seconds.
-
#language : String | Nil
The detected language of the audio content (ISO-639-1 code).
-
#provider_metadata : ProviderMetadata | Nil
Additional provider-specific metadata.
-
#request : ResultRequest | Nil
Optional request information for telemetry and debugging.
-
#response : ResultResponse
Response information for telemetry and debugging.
-
#segments : Array(Segment)
Array of transcript segments with timing information.
-
#text : String
The complete transcribed text from the audio.
-
#warnings : Array(Shared::Warning)
Warnings for the call, e.g.