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

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

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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

This class inherits a constructor from Telnyx::Internal::Type::BaseModel

Instance Attribute Details

#confidenceFloat?

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

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.

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.

Returns:

  • (String)


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

required :transcript, String

#typeSymbol, :transcript

Frame type identifier.

Returns:

  • (Symbol, :transcript)


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

required :type, const: :transcript