Class: Zavudev::Models::Senders::SendersAgent::Voice
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Zavudev::Models::Senders::SendersAgent::Voice
- Defined in:
- lib/zavudev/models/senders/agent.rb,
sig/zavudev/models/senders/agent.rbs
Overview
Defined Under Namespace
Modules: VoicemailAction
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
Whether the agent handles voice calls.
-
#greeting ⇒ String?
Opening line the agent speaks when the call connects.
-
#greetings ⇒ Hash{Symbol=>String}?
Greeting per language, keyed by language code.
-
#interruptible ⇒ Boolean?
Whether the caller can interrupt the agent while it is speaking (barge-in).
-
#language ⇒ String?
BCP-47 language code used for both speech recognition and speech synthesis (e.g.
en,es,pt-BR). -
#max_call_duration_minutes ⇒ Integer?
Hard limit on call length in minutes.
-
#max_idle_seconds ⇒ Integer?
How long the agent waits during silence before ending the call.
-
#model ⇒ String?
Model that runs the conversation, co-located in the voice network for lowest latency.
-
#record_calls ⇒ Boolean?
Whether the call audio is recorded.
-
#stt_model ⇒ String?
Speech-recognition model.
-
#stt_provider ⇒ String?
Speech-recognition provider.
-
#transfer_phone_number ⇒ String?
E.164 phone number the agent can transfer the call to.
-
#tts_provider ⇒ String?
Speech-synthesis provider.
-
#tts_voice_id ⇒ String?
Identifier of the synthesized voice that speaks.
-
#voice_speed ⇒ Float?
Speech rate.
-
#voicemail_action ⇒ Symbol, ...
What the agent does when an answering machine or voicemail is detected on an outbound call.
-
#voicemail_message ⇒ String?
Message spoken when
voicemailActionisleave_message.
Instance Method Summary collapse
-
#initialize(enabled:, greeting: nil, greetings: nil, interruptible: nil, language: nil, max_call_duration_minutes: nil, max_idle_seconds: nil, model: nil, record_calls: nil, stt_model: nil, stt_provider: nil, transfer_phone_number: nil, tts_provider: nil, tts_voice_id: nil, voicemail_action: nil, voicemail_message: nil, voice_speed: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Voice for more details.
- #to_hash ⇒ {
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(enabled:, greeting: nil, greetings: nil, interruptible: nil, language: nil, max_call_duration_minutes: nil, max_idle_seconds: nil, model: nil, record_calls: nil, stt_model: nil, stt_provider: nil, transfer_phone_number: nil, tts_provider: nil, tts_voice_id: nil, voicemail_action: nil, voicemail_message: nil, voice_speed: nil) ⇒ Object
Some parameter documentations has been truncated, see Zavudev::Models::Senders::SendersAgent::Voice for more details.
Voice Agent configuration. When present and enabled, the agent can answer inbound phone calls and place outbound calls with Zavu's managed voice pipeline. Requires the Voice Agents feature to be enabled for your team.
|
|
# File 'lib/zavudev/models/senders/agent.rb', line 302
|
Instance Attribute Details
#enabled ⇒ Boolean
Whether the agent handles voice calls. When false, the sender's number is not answered by the voice agent and outbound calls are rejected.
191 |
# File 'lib/zavudev/models/senders/agent.rb', line 191 required :enabled, Zavudev::Internal::Type::Boolean |
#greeting ⇒ String?
Opening line the agent speaks when the call connects. If omitted, the agent waits for the caller to speak first.
198 |
# File 'lib/zavudev/models/senders/agent.rb', line 198 optional :greeting, String |
#greetings ⇒ Hash{Symbol=>String}?
Greeting per language, keyed by language code. Used when the caller's language
differs from the one greeting is written in.
205 |
# File 'lib/zavudev/models/senders/agent.rb', line 205 optional :greetings, Zavudev::Internal::Type::HashOf[String] |
#interruptible ⇒ Boolean?
Whether the caller can interrupt the agent while it is speaking (barge-in). When true, the agent stops talking as soon as the caller starts.
212 |
# File 'lib/zavudev/models/senders/agent.rb', line 212 optional :interruptible, Zavudev::Internal::Type::Boolean |
#language ⇒ String?
BCP-47 language code used for both speech recognition and speech synthesis (e.g.
en, es, pt-BR). Auto-detected from the recipient when omitted.
219 |
# File 'lib/zavudev/models/senders/agent.rb', line 219 optional :language, String |
#max_call_duration_minutes ⇒ Integer?
Hard limit on call length in minutes. The call ends automatically when reached.
225 |
# File 'lib/zavudev/models/senders/agent.rb', line 225 optional :max_call_duration_minutes, Integer, api_name: :maxCallDurationMinutes |
#max_idle_seconds ⇒ Integer?
How long the agent waits during silence before ending the call.
231 |
# File 'lib/zavudev/models/senders/agent.rb', line 231 optional :max_idle_seconds, Integer, api_name: :maxIdleSeconds |
#model ⇒ String?
Model that runs the conversation, co-located in the voice network for lowest latency. Independent of the model used for text messaging. Derived from the agent's text model when omitted.
239 |
# File 'lib/zavudev/models/senders/agent.rb', line 239 optional :model, String |
#record_calls ⇒ Boolean?
Whether the call audio is recorded.
245 |
# File 'lib/zavudev/models/senders/agent.rb', line 245 optional :record_calls, Zavudev::Internal::Type::Boolean, api_name: :recordCalls |
#stt_model ⇒ String?
Speech-recognition model. Uses the default when omitted.
251 |
# File 'lib/zavudev/models/senders/agent.rb', line 251 optional :stt_model, String, api_name: :sttModel |
#stt_provider ⇒ String?
Speech-recognition provider. Uses the default when omitted.
257 |
# File 'lib/zavudev/models/senders/agent.rb', line 257 optional :stt_provider, String, api_name: :sttProvider |
#transfer_phone_number ⇒ String?
E.164 phone number the agent can transfer the call to. When set, the agent is given a transfer tool it can use to hand the call to a human.
264 |
# File 'lib/zavudev/models/senders/agent.rb', line 264 optional :transfer_phone_number, String, api_name: :transferPhoneNumber |
#tts_provider ⇒ String?
Speech-synthesis provider. Uses the default when omitted.
270 |
# File 'lib/zavudev/models/senders/agent.rb', line 270 optional :tts_provider, String, api_name: :ttsProvider |
#tts_voice_id ⇒ String?
Identifier of the synthesized voice that speaks. Choose from the voices available in the dashboard. Uses a neutral default when omitted.
277 |
# File 'lib/zavudev/models/senders/agent.rb', line 277 optional :tts_voice_id, String, api_name: :ttsVoiceId |
#voice_speed ⇒ Float?
Speech rate. 1.0 is natural. Only honoured by voices that support rate control; ignored by the others.
300 |
# File 'lib/zavudev/models/senders/agent.rb', line 300 optional :voice_speed, Float, api_name: :voiceSpeed |
#voicemail_action ⇒ Symbol, ...
What the agent does when an answering machine or voicemail is detected on an outbound call.
284 285 286 |
# File 'lib/zavudev/models/senders/agent.rb', line 284 optional :voicemail_action, enum: -> { Zavudev::Senders::SendersAgent::Voice::VoicemailAction }, api_name: :voicemailAction |
#voicemail_message ⇒ String?
Message spoken when voicemailAction is leave_message. Falls back to
greeting when omitted.
293 |
# File 'lib/zavudev/models/senders/agent.rb', line 293 optional :voicemail_message, String, api_name: :voicemailMessage |
Instance Method Details
#to_hash ⇒ {
266 |
# File 'sig/zavudev/models/senders/agent.rbs', line 266
def to_hash: -> {
|