class

OpenAI::TranscriptionSegment

Inherits JSON::Serializable < Reference < Object

Constructors

new(id : Int64 = 0, seek : Int64 = 0, start : Float32 = 0.0, end_value : Float32 = 0.0, text : String = "", tokens : Array(Int64) = [] of Int64, temperature : Float32 = 0.0, avg_logprob : Float32 = 0.0, compression_ratio : Float32 = 0.0, no_speech_prob : Float32 = 0.0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

avg_logprob

Average logprob of the segment. If the value is lower than -1, consider the logprobs failed.

Source
avg_logprob=(avg_logprob : Float32)

Average logprob of the segment. If the value is lower than -1, consider the logprobs failed.

Source
compression_ratio

Compression ratio of the segment. If the value is greater than 2.4, consider the compression failed.

Source
compression_ratio=(compression_ratio : Float32)

Compression ratio of the segment. If the value is greater than 2.4, consider the compression failed.

Source
end_value

End time of the segment in seconds.

Source
end_value=(end_value : Float32)

End time of the segment in seconds.

Source
id

Unique identifier of the segment.

Source
id=(id : Int64)

Unique identifier of the segment.

Source
no_speech_prob

Probability of no speech in the segment. If the value is higher than 1.0 and the avg_logprob is below -1, consider this segment silent.

Source
no_speech_prob=(no_speech_prob : Float32)

Probability of no speech in the segment. If the value is higher than 1.0 and the avg_logprob is below -1, consider this segment silent.

Source
seek

Seek offset of the segment.

Source
seek=(seek : Int64)

Seek offset of the segment.

Source
start

Start time of the segment in seconds.

Source
start=(start : Float32)

Start time of the segment in seconds.

Source
temperature

Temperature parameter used for generating the segment.

Source
temperature=(temperature : Float32)

Temperature parameter used for generating the segment.

Source
text

Text content of the segment.

Source
text=(text : String)

Text content of the segment.

Source
tokens

Array of token IDs for the text content.

Source
tokens=(tokens : Array(Int64))

Array of token IDs for the text content.

Source