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, hints: nil, asr_smart_format: nil, tts_text_normalization: nil, tts_language_text_normalization: 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 hints
- Phrases to help better accuracy in speech recognition of this language asr_smart_format
- Whether smart formatting should be applied to transcripts of this language tts_text_normalization
Text normalization for text-to-speech of this language.
- 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.
2238 2239 2240 2241 2242 2243 |
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 2238 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, hints: nil, asr_smart_format: nil, tts_text_normalization: nil, tts_language_text_normalization: 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
- hints
Phrases to help better accuracy in speech recognition of this language
- asr_smart_format
Whether smart formatting should be applied to transcripts of this language
- tts_text_normalization
Text normalization for text-to-speech of this language. The value can be auto, on, or off
- tts_language_text_normalization
Whether language-specific text normalization should be applied for text-to-speech of this language
- keyword_args
additional attributes
2257 2258 2259 |
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 2257 def language(code: nil, tts_provider: nil, voice: nil, transcription_provider: nil, speech_model: nil, hints: nil, asr_smart_format: nil, tts_text_normalization: nil, tts_language_text_normalization: nil, **keyword_args) append(Language.new(code: code, tts_provider: tts_provider, voice: voice, transcription_provider: transcription_provider, speech_model: speech_model, hints: hints, asr_smart_format: asr_smart_format, tts_text_normalization: tts_text_normalization, tts_language_text_normalization: tts_language_text_normalization, **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
2266 2267 2268 |
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 2266 def parameter(name: nil, value: nil, **keyword_args) append(Parameter.new(name: name, value: value, **keyword_args)) end |