struct AI::Provider::TranscriptionModel::Segment

Overview

A segment of the transcription with timing information.

Included Modules

Defined in:

ai/provider/transcription_model/transcription_model.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(text : String, start_second : Float64, end_second : Float64) #

[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 end_second : Float64 #

The end time of this segment in seconds.


[View source]
def start_second : Float64 #

The start time of this segment in seconds.


[View source]
def text : String #

The text content of this segment.


[View source]