Class: Telnyx::Models::StreamServerEvent::FinalFrameEvent

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

Defined Under Namespace

Modules: IsFinal, Type

Instance Attribute Summary collapse

Class Method 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(audio: nil, is_final: nil, text: nil, time_to_first_audio_frame_ms: nil, type: nil) ⇒ Object

Server-to-client frame indicating synthesis is complete for the current text.

Parameters:



# File 'lib/telnyx/models/stream_server_event.rb', line 124

Instance Attribute Details

#audionil

Always ‘null` for the final frame.

Returns:

  • (nil)


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

optional :audio, NilClass

#is_finalBoolean, ...

Always ‘true`.



102
103
104
# File 'lib/telnyx/models/stream_server_event.rb', line 102

optional :is_final,
enum: -> { Telnyx::Models::StreamServerEvent::FinalFrameEvent::IsFinal },
api_name: :isFinal

#textString?

Empty string.

Returns:

  • (String, nil)


110
# File 'lib/telnyx/models/stream_server_event.rb', line 110

optional :text, String

#time_to_first_audio_frame_msInteger?

Present if this was the first response frame.

Returns:

  • (Integer, nil)


116
# File 'lib/telnyx/models/stream_server_event.rb', line 116

optional :time_to_first_audio_frame_ms, Integer, api_name: :timeToFirstAudioFrameMs

#typeSymbol, ...

Frame type identifier.



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

optional :type, enum: -> { Telnyx::Models::StreamServerEvent::FinalFrameEvent::Type }

Class Method Details

.valuesArray<Boolean>

Returns:

  • (Array<Boolean>)


# File 'lib/telnyx/models/stream_server_event.rb', line 145