Class: OpenAI::Models::Audio::TranscriptionVerbose
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Audio::TranscriptionVerbose
- Defined in:
- lib/openai/models/audio/transcription_verbose.rb
Instance Attribute Summary collapse
-
#duration ⇒ Float
The duration of the input audio.
-
#language ⇒ String
The language of the input audio.
-
#segments ⇒ Array<OpenAI::Models::Audio::TranscriptionSegment>?
Segments of the transcribed text and their corresponding details.
-
#text ⇒ String
The transcribed text.
-
#words ⇒ Array<OpenAI::Models::Audio::TranscriptionWord>?
Extracted words and their corresponding timestamps.
Instance Method Summary collapse
-
#initialize(duration: , language: , text: , segments: nil, words: nil) ⇒ Object
constructor
Represents a verbose json transcription response returned by model, based on the provided input.
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(duration: , language: , text: , segments: nil, words: nil) ⇒ Object
Represents a verbose json transcription response returned by model, based on the provided input.
|
# File 'lib/openai/models/audio/transcription_verbose.rb', line 37
|
Instance Attribute Details
#duration ⇒ Float
The duration of the input audio.
11 |
# File 'lib/openai/models/audio/transcription_verbose.rb', line 11 required :duration, Float |
#language ⇒ String
The language of the input audio.
17 |
# File 'lib/openai/models/audio/transcription_verbose.rb', line 17 required :language, String |
#segments ⇒ Array<OpenAI::Models::Audio::TranscriptionSegment>?
Segments of the transcribed text and their corresponding details.
29 |
# File 'lib/openai/models/audio/transcription_verbose.rb', line 29 optional :segments, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Audio::TranscriptionSegment] } |
#text ⇒ String
The transcribed text.
23 |
# File 'lib/openai/models/audio/transcription_verbose.rb', line 23 required :text, String |