struct
AI::Provider::TranscriptionModel::Segment
- AI::Provider::TranscriptionModel::Segment
- Struct
- Value
- Object
Overview
A segment of the transcription with timing information.
Included Modules
- JSON::Serializable
Defined in:
ai/provider/transcription_model/transcription_model.crConstructors
- .new(text : String, start_second : Float64, end_second : Float64)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#end_second : Float64
The end time of this segment in seconds.
-
#start_second : Float64
The start time of this segment in seconds.
-
#text : String
The text content of this segment.