Module: Telnyx::Models::TranscribeServerEvent

Extended by:
Internal::Type::Union
Defined in:
lib/telnyx/models/transcribe_server_event.rb

Overview

Union of all server-to-client WebSocket events for STT streaming.

Defined Under Namespace

Classes: Error, Transcript

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Class Method Details

Instance Method Details

#initialize(transcript:, confidence: nil, is_final: nil, type: :transcript) ⇒ Object

Some parameter documentations has been truncated, see Transcript for more details.

Server-to-client frame containing a transcription result.

Parameters:

  • transcript (String)

    The transcribed text from the audio.

  • confidence (Float) (defaults to: nil)

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

  • is_final (Boolean) (defaults to: nil)

    Whether this is a final transcription result. When ‘false`, this is an interim r

  • type (Symbol, :transcript) (defaults to: :transcript)

    Frame type identifier.



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