Class: Revox::Models::CallRetrieveResponse::Call::CallAttempt::SpeechEvent

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

Defined Under Namespace

Modules: Speaker

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(id:, is_real_turn:, llm_system_prompt:, llm_ttft_ms:, llm_winner_model:, speaker:, started_speaking_at_ms:, stopped_speaking_at_ms:, stt_transcription_delay_ms:, transcript:, tts_ttfb_ms:, was_cut:) ⇒ Object

Some parameter documentations has been truncated, see Revox::Models::CallRetrieveResponse::Call::CallAttempt::SpeechEvent for more details.

Parameters:

  • id (String)
  • is_real_turn (Boolean)

    False when the segment was flagged as noise/blip rather than a meaningful turn.

  • llm_system_prompt (String, nil)

    Agent-only: despite the name, the whole prompt the LLM was given for this turn —

  • llm_ttft_ms (Float, nil)

    Agent-only: LLM time-to-first-token for the reply, in ms.

  • llm_winner_model (String, nil)

    Agent-only: the model that produced the reply — the winning leg when the LLM is

  • speaker (Symbol, Revox::Models::CallRetrieveResponse::Call::CallAttempt::SpeechEvent::Speaker)

    Who was speaking during this segment.

  • started_speaking_at_ms (Float)

    Milliseconds since session start when speech began.

  • stopped_speaking_at_ms (Float, nil)

    Milliseconds since session start when speech ended. Null when the session ended

  • stt_transcription_delay_ms (Float, nil)

    User-only: time from end-of-speech to final transcript, in ms.

  • transcript (String, nil)

    Recognized text for this segment, when available.

  • tts_ttfb_ms (Float, nil)

    Agent-only: TTS time-to-first-audio-byte for the reply, in ms.

  • was_cut (Boolean, nil)

    Agent-only: true when the agent's audio was interrupted (real or auto-resumed).



# File 'lib/revox/models/call_retrieve_response.rb', line 2498

Instance Attribute Details

#idString

Parameters:

  • value (String)

Returns:

  • (String)


2425
# File 'lib/revox/models/call_retrieve_response.rb', line 2425

required :id, String

#is_real_turnBoolean

False when the segment was flagged as noise/blip rather than a meaningful turn.

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


2431
# File 'lib/revox/models/call_retrieve_response.rb', line 2431

required :is_real_turn, Revox::Internal::Type::Boolean

#llm_system_promptString?

Agent-only: despite the name, the whole prompt the LLM was given for this turn — system instructions plus conversation history — as JSON.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


2438
# File 'lib/revox/models/call_retrieve_response.rb', line 2438

required :llm_system_prompt, String, nil?: true

#llm_ttft_msFloat?

Agent-only: LLM time-to-first-token for the reply, in ms.

Parameters:

  • value (Float, nil)

Returns:

  • (Float, nil)


2444
# File 'lib/revox/models/call_retrieve_response.rb', line 2444

required :llm_ttft_ms, Float, nil?: true

#llm_winner_modelString?

Agent-only: the model that produced the reply — the winning leg when the LLM is a race, which is also the model llm_ttft_ms describes.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


2451
# File 'lib/revox/models/call_retrieve_response.rb', line 2451

required :llm_winner_model, String, nil?: true

#speakerSymbol, Revox::Models::CallRetrieveResponse::Call::CallAttempt::SpeechEvent::Speaker

Who was speaking during this segment.

Parameters:

  • value (Revox::Models::CallRetrieveResponse::Call::CallAttempt::SpeechEvent::speaker)

Returns:



2457
2458
# File 'lib/revox/models/call_retrieve_response.rb', line 2457

required :speaker,
enum: -> { Revox::Models::CallRetrieveResponse::Call::CallAttempt::SpeechEvent::Speaker }

#started_speaking_at_msFloat

Milliseconds since session start when speech began.

Parameters:

  • value (Float)

Returns:

  • (Float)


2464
# File 'lib/revox/models/call_retrieve_response.rb', line 2464

required :started_speaking_at_ms, Float

#stopped_speaking_at_msFloat?

Milliseconds since session start when speech ended. Null when the session ended before the turn closed.

Parameters:

  • value (Float, nil)

Returns:

  • (Float, nil)


2471
# File 'lib/revox/models/call_retrieve_response.rb', line 2471

required :stopped_speaking_at_ms, Float, nil?: true

#stt_transcription_delay_msFloat?

User-only: time from end-of-speech to final transcript, in ms.

Parameters:

  • value (Float, nil)

Returns:

  • (Float, nil)


2477
# File 'lib/revox/models/call_retrieve_response.rb', line 2477

required :stt_transcription_delay_ms, Float, nil?: true

#transcriptString?

Recognized text for this segment, when available.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


2483
# File 'lib/revox/models/call_retrieve_response.rb', line 2483

required :transcript, String, nil?: true

#tts_ttfb_msFloat?

Agent-only: TTS time-to-first-audio-byte for the reply, in ms.

Parameters:

  • value (Float, nil)

Returns:

  • (Float, nil)


2489
# File 'lib/revox/models/call_retrieve_response.rb', line 2489

required :tts_ttfb_ms, Float, nil?: true

#was_cutBoolean?

Agent-only: true when the agent's audio was interrupted (real or auto-resumed). Null on user segments.

Parameters:

  • value (Boolean, nil)

Returns:

  • (Boolean, nil)


2496
# File 'lib/revox/models/call_retrieve_response.rb', line 2496

required :was_cut, Revox::Internal::Type::Boolean, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


1989
# File 'sig/revox/models/call_retrieve_response.rbs', line 1989

def to_hash: -> {