Class: Twilio::TwiML::ConversationRelay
- Defined in:
- lib/twilio-ruby/twiml/voice_response.rb
Overview
Instance Attribute Summary
Attributes inherited from TwiML
Instance Method Summary collapse
-
#initialize(**keyword_args) {|_self| ... } ⇒ ConversationRelay
constructor
A new instance of ConversationRelay.
-
#language(code: nil, tts_provider: nil, voice: nil, transcription_provider: nil, speech_model: nil, **keyword_args) ⇒ Object
- Create a new
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.
- Create a new
-
#parameter(name: nil, value: nil, **keyword_args) ⇒ Object
- Create a new
element name - The name of the custom parameter value
- The value of the custom parameter keyword_args
additional attributes.
- Create a new
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.
2240 2241 2242 2243 2244 2245 |
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 2240 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
- 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
2255 2256 2257 |
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 2255 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
- name
The name of the custom parameter
- value
The value of the custom parameter
- keyword_args
additional attributes
2264 2265 2266 |
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 2264 def parameter(name: nil, value: nil, **keyword_args) append(Parameter.new(name: name, value: value, **keyword_args)) end |