Class: Telnyx::Models::AI::AudioTranscribeResponse::Word

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/ai/audio_transcribe_response.rb

Instance Attribute Summary collapse

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, 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.

Parameters:

  • end_ (Float)

    End time of the word in seconds.

  • start (Float)

    Start time of the word in seconds.

  • word (String)

    The transcribed word.

  • confidence (Float) (defaults to: nil)

    Confidence score for the word (0.0 to 1.0).

  • speaker (Integer) (defaults to: nil)

    Speaker index. Only present when diarization is enabled via ‘model_config`.



# File 'lib/telnyx/models/ai/audio_transcribe_response.rb', line 122

Instance Attribute Details

#confidenceFloat?

Confidence score for the word (0.0 to 1.0).

Returns:

  • (Float, nil)


114
# File 'lib/telnyx/models/ai/audio_transcribe_response.rb', line 114

optional :confidence, Float

#end_Float

End time of the word in seconds.

Returns:

  • (Float)


96
# File 'lib/telnyx/models/ai/audio_transcribe_response.rb', line 96

required :end_, Float, api_name: :end

#speakerInteger?

Speaker index. Only present when diarization is enabled via ‘model_config`.

Returns:

  • (Integer, nil)


120
# File 'lib/telnyx/models/ai/audio_transcribe_response.rb', line 120

optional :speaker, Integer

#startFloat

Start time of the word in seconds.

Returns:

  • (Float)


102
# File 'lib/telnyx/models/ai/audio_transcribe_response.rb', line 102

required :start, Float

#wordString

The transcribed word.

Returns:

  • (String)


108
# File 'lib/telnyx/models/ai/audio_transcribe_response.rb', line 108

required :word, String