struct
AI::OpenAI::OpenAITranscriptionSegment
- AI::OpenAI::OpenAITranscriptionSegment
- Struct
- Value
- Object
Overview
Segment-level information from the transcription response.
Included Modules
- JSON::Serializable
Defined in:
ai/openai/transcription/openai_transcription_api.crConstructors
- .new(id : Int32, seek : Int32, start : Float64, end_time : Float64, text : String, tokens : Array(Int32), temperature : Float64, avg_logprob : Float64, compression_ratio : Float64, no_speech_prob : Float64)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#avg_logprob : Float64
Average log probability.
-
#compression_ratio : Float64
Compression ratio.
-
#end_time : Float64
End time in seconds.
-
#id : Int32
Unique identifier for the segment.
-
#no_speech_prob : Float64
Probability of no speech.
-
#seek : Int32
Seek offset of the segment.
-
#start : Float64
Start time in seconds.
-
#temperature : Float64
Temperature used for generation.
-
#text : String
Transcribed text for the segment.
-
#tokens : Array(Int32)
Array of token IDs.
Constructor Detail
def self.new(id : Int32, seek : Int32, start : Float64, end_time : Float64, text : String, tokens : Array(Int32), temperature : Float64, avg_logprob : Float64, compression_ratio : Float64, no_speech_prob : Float64)
#