Class: Telnyx::Models::TranscribeServerEvent::Transcript

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/transcribe_server_event.rb,
sig/telnyx/models/transcribe_server_event.rbs

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

#initializeObject



31
# File 'sig/telnyx/models/transcribe_server_event.rbs', line 31

def initialize: (

Instance Attribute Details

#confidenceFloat?

Confidence score of the transcription, ranging from 0 to 1.

Parameters:

  • (Float)

Returns:

  • (Float, nil)


34
# File 'lib/telnyx/models/transcribe_server_event.rb', line 34

optional :confidence, Float

#is_finalBoolean?

Whether this is a final transcription result. When false, this is an interim result that may be refined.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


41
# File 'lib/telnyx/models/transcribe_server_event.rb', line 41

optional :is_final, Telnyx::Internal::Type::Boolean

#transcriptString

The transcribed text from the audio.

Parameters:

  • value (String)

Returns:

  • (String)


22
# File 'lib/telnyx/models/transcribe_server_event.rb', line 22

required :transcript, String

#typeSymbol, :transcript

Frame type identifier.

Parameters:

  • value (:transcript)

Returns:

  • (Symbol, :transcript)


28
# File 'lib/telnyx/models/transcribe_server_event.rb', line 28

required :type, const: :transcript

Instance Method Details

#to_hash{

Returns:

  • ({)


38
# File 'sig/telnyx/models/transcribe_server_event.rbs', line 38

def to_hash: -> {