Class: OpenAI::Models::Audio::TranscriptionSegment
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Audio::TranscriptionSegment
- Defined in:
- lib/openai/models/audio/transcription_segment.rb
Instance Attribute Summary collapse
-
#avg_logprob ⇒ Float
Average logprob of the segment.
-
#compression_ratio ⇒ Float
Compression ratio of the segment.
-
#end_ ⇒ Float
End time of the segment in seconds.
-
#id ⇒ Integer
Unique identifier of the segment.
-
#no_speech_prob ⇒ Float
Probability of no speech in the segment.
-
#seek ⇒ Integer
Seek offset of the segment.
-
#start ⇒ Float
Start time of the segment in seconds.
-
#temperature ⇒ Float
Temperature parameter used for generating the segment.
-
#text ⇒ String
Text content of the segment.
-
#tokens ⇒ Array<Integer>
Array of token IDs for the text content.
Instance Method Summary collapse
-
#initialize(id: , avg_logprob: , compression_ratio: , end_: , no_speech_prob: , seek: , start: , temperature: , text: , tokens: ) ⇒ Object
constructor
Some parameter documentations has been truncated, see TranscriptionSegment for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id: , avg_logprob: , compression_ratio: , end_: , no_speech_prob: , seek: , start: , temperature: , text: , tokens: ) ⇒ Object
Some parameter documentations has been truncated, see OpenAI::Models::Audio::TranscriptionSegment for more details.
|
# File 'lib/openai/models/audio/transcription_segment.rb', line 70
|
Instance Attribute Details
#avg_logprob ⇒ Float
Average logprob of the segment. If the value is lower than -1, consider the logprobs failed.
18 |
# File 'lib/openai/models/audio/transcription_segment.rb', line 18 required :avg_logprob, Float |
#compression_ratio ⇒ Float
Compression ratio of the segment. If the value is greater than 2.4, consider the compression failed.
25 |
# File 'lib/openai/models/audio/transcription_segment.rb', line 25 required :compression_ratio, Float |
#end_ ⇒ Float
End time of the segment in seconds.
31 |
# File 'lib/openai/models/audio/transcription_segment.rb', line 31 required :end_, Float, api_name: :end |
#id ⇒ Integer
Unique identifier of the segment.
11 |
# File 'lib/openai/models/audio/transcription_segment.rb', line 11 required :id, Integer |
#no_speech_prob ⇒ Float
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.
38 |
# File 'lib/openai/models/audio/transcription_segment.rb', line 38 required :no_speech_prob, Float |
#seek ⇒ Integer
Seek offset of the segment.
44 |
# File 'lib/openai/models/audio/transcription_segment.rb', line 44 required :seek, Integer |
#start ⇒ Float
Start time of the segment in seconds.
50 |
# File 'lib/openai/models/audio/transcription_segment.rb', line 50 required :start, Float |
#temperature ⇒ Float
Temperature parameter used for generating the segment.
56 |
# File 'lib/openai/models/audio/transcription_segment.rb', line 56 required :temperature, Float |
#text ⇒ String
Text content of the segment.
62 |
# File 'lib/openai/models/audio/transcription_segment.rb', line 62 required :text, String |