Class: Telnyx::Models::AI::AudioTranscribeResponse::Word
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::AI::AudioTranscribeResponse::Word
- Defined in:
- lib/telnyx/models/ai/audio_transcribe_response.rb
Instance Attribute Summary collapse
-
#confidence ⇒ Float?
Confidence score for the word (0.0 to 1.0).
-
#end_ ⇒ Float
End time of the word in seconds.
-
#speaker ⇒ Integer?
Speaker index.
-
#start ⇒ Float
Start time of the word in seconds.
-
#word ⇒ String
The transcribed word.
Instance Method Summary collapse
-
#initialize(end_:, start:, word:, confidence: nil, speaker: nil) ⇒ Object
constructor
Word-level timing detail.
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, meta_info, new_coerce_state, 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(end_:, start:, word:, confidence: nil, speaker: nil) ⇒ Object
Word-level timing detail. Only present when using ‘deepgram/nova-3` with `model_config` options that enable word timestamps.
|
|
# File 'lib/telnyx/models/ai/audio_transcribe_response.rb', line 122
|
Instance Attribute Details
#confidence ⇒ Float?
Confidence score for the word (0.0 to 1.0).
114 |
# File 'lib/telnyx/models/ai/audio_transcribe_response.rb', line 114 optional :confidence, Float |
#end_ ⇒ Float
End time of the word in seconds.
96 |
# File 'lib/telnyx/models/ai/audio_transcribe_response.rb', line 96 required :end_, Float, api_name: :end |
#speaker ⇒ Integer?
Speaker index. Only present when diarization is enabled via ‘model_config`.
120 |
# File 'lib/telnyx/models/ai/audio_transcribe_response.rb', line 120 optional :speaker, Integer |
#start ⇒ Float
Start time of the word in seconds.
102 |
# File 'lib/telnyx/models/ai/audio_transcribe_response.rb', line 102 required :start, Float |
#word ⇒ String
The transcribed word.
108 |
# File 'lib/telnyx/models/ai/audio_transcribe_response.rb', line 108 required :word, String |