Class: Twilio::TwiML::ConversationRelay

Inherits:
TwiML
  • Object
show all
Defined in:
lib/twilio-ruby/twiml/voice_response.rb

Overview

<ConversationRelay> TwiML Noun

Instance Attribute Summary

Attributes inherited from TwiML

#name

Instance Method Summary collapse

Methods inherited from TwiML

#add_child, #add_text, #append, #comment, to_lower_camel_case, #to_s, #xml

Constructor Details

#initialize(**keyword_args) {|_self| ... } ⇒ ConversationRelay

Returns a new instance of ConversationRelay.

Yields:

  • (_self)

Yield Parameters:



2066
2067
2068
2069
2070
2071
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 2066

def initialize(**keyword_args)
  super(**keyword_args)
  @name = 'ConversationRelay'

  yield(self) if block_given?
end

Instance Method Details

#language(code: nil, tts_provider: nil, voice: nil, transcription_provider: nil, speech_model: nil, **keyword_args) ⇒ Object

Create a new <Language> element

code

Language code of this language setting is for

tts_provider

Provider to be used for text-to-speech of this language

voice

Voice to be used for text-to-speech of this language

transcription_provider

Provider to be used for transcription of this language

speech_model

Speech model to be used for transcription of this language

keyword_args

additional attributes



2081
2082
2083
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 2081

def language(code: nil, tts_provider: nil, voice: nil, transcription_provider: nil, speech_model: nil, **keyword_args)
  append(Language.new(code: code, tts_provider: tts_provider, voice: voice, transcription_provider: transcription_provider, speech_model: speech_model, **keyword_args))
end

#parameter(name: nil, value: nil, **keyword_args) ⇒ Object

Create a new <Parameter> element

name

The name of the custom parameter

value

The value of the custom parameter

keyword_args

additional attributes



2090
2091
2092
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 2090

def parameter(name: nil, value: nil, **keyword_args)
  append(Parameter.new(name: name, value: value, **keyword_args))
end