Class: OpenAI::Models::Audio::TranslationVerbose
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Audio::TranslationVerbose
- Defined in:
- lib/openai/models/audio/translation_verbose.rb
Instance Attribute Summary collapse
-
#duration ⇒ Float
The duration of the input audio.
-
#language ⇒ String
The language of the output translation (always ‘english`).
-
#segments ⇒ Array<OpenAI::Models::Audio::TranscriptionSegment>?
Segments of the translated text and their corresponding details.
-
#text ⇒ String
The translated text.
Instance Method Summary collapse
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) ⇒ Object
|
# File 'lib/openai/models/audio/translation_verbose.rb', line 31
|
Instance Attribute Details
#duration ⇒ Float
The duration of the input audio.
11 |
# File 'lib/openai/models/audio/translation_verbose.rb', line 11 required :duration, Float |
#language ⇒ String
The language of the output translation (always ‘english`).
17 |
# File 'lib/openai/models/audio/translation_verbose.rb', line 17 required :language, String |
#segments ⇒ Array<OpenAI::Models::Audio::TranscriptionSegment>?
Segments of the translated text and their corresponding details.
29 |
# File 'lib/openai/models/audio/translation_verbose.rb', line 29 optional :segments, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Audio::TranscriptionSegment] } |
#text ⇒ String
The translated text.
23 |
# File 'lib/openai/models/audio/translation_verbose.rb', line 23 required :text, String |