class Twilio::TwiML::Say
<Say> TwiML
Verb
Public Class Methods
Twilio::TwiML::TwiML::new
# File lib/twilio-ruby/twiml/voice_response.rb 525 def initialize(message: nil, **keyword_args) 526 super(**keyword_args) 527 @name = 'Say' 528 @value = message unless message.nil? 529 yield(self) if block_given? 530 end
Public Instance Methods
Create a new <Break> element
- strength
-
Set a pause based on strength
- time
-
Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms
- keyword_args
-
additional attributes
# File lib/twilio-ruby/twiml/voice_response.rb 537 def break(strength: nil, time: nil, **keyword_args) 538 append(SsmlBreak.new(strength: strength, time: time, **keyword_args)) 539 end
Create a new <Emphasis> element
- words
-
Words to emphasize
- level
-
Specify the degree of emphasis
- keyword_args
-
additional attributes
# File lib/twilio-ruby/twiml/voice_response.rb 546 def emphasis(words, level: nil, **keyword_args) 547 append(SsmlEmphasis.new(words, level: level, **keyword_args)) 548 end
Create a new <Lang> element
- words
-
Words to speak
- xmlLang
-
Specify the language
- keyword_args
-
additional attributes
# File lib/twilio-ruby/twiml/voice_response.rb 555 def lang(words, xmlLang: nil, **keyword_args) 556 append(SsmlLang.new(words, xmlLang: xmlLang, **keyword_args)) 557 end
Create a new <P> element
- words
-
Words to speak
- keyword_args
-
additional attributes
# File lib/twilio-ruby/twiml/voice_response.rb 563 def p(words, **keyword_args) 564 append(SsmlP.new(words, **keyword_args)) 565 end
Create a new <Phoneme> element
- words
-
Words to speak
- alphabet
-
Specify the phonetic alphabet
- ph
-
Specifiy the phonetic symbols for pronunciation
- keyword_args
-
additional attributes
# File lib/twilio-ruby/twiml/voice_response.rb 573 def phoneme(words, alphabet: nil, ph: nil, **keyword_args) 574 append(SsmlPhoneme.new(words, alphabet: alphabet, ph: ph, **keyword_args)) 575 end
Create a new <Prosody> element
- words
-
Words to speak
- volume
-
Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB
- rate
-
Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n%
- pitch
-
Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n%
- keyword_args
-
additional attributes
# File lib/twilio-ruby/twiml/voice_response.rb 584 def prosody(words, volume: nil, rate: nil, pitch: nil, **keyword_args) 585 append(SsmlProsody.new(words, volume: volume, rate: rate, pitch: pitch, **keyword_args)) 586 end
Create a new <S> element
- words
-
Words to speak
- keyword_args
-
additional attributes
# File lib/twilio-ruby/twiml/voice_response.rb 592 def s(words, **keyword_args) 593 append(SsmlS.new(words, **keyword_args)) 594 end
Create a new <Say-As> element
- words
-
Words to be interpreted
- interpretAs
-
Specify the type of words are spoken
- role
-
Specify the format of the date when interpret-as is set to date
- keyword_args
-
additional attributes
# File lib/twilio-ruby/twiml/voice_response.rb 602 def say_as(words, interpretAs: nil, role: nil, **keyword_args) 603 append(SsmlSayAs.new(words, interpretAs: interpretAs, role: role, **keyword_args)) 604 end
Create a new <Sub> element
- words
-
Words to be substituted
- aliasAttribute
-
Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation
- keyword_args
-
additional attributes
# File lib/twilio-ruby/twiml/voice_response.rb 611 def sub(words, aliasAttribute: nil, **keyword_args) 612 append(SsmlSub.new(words, aliasAttribute: aliasAttribute, **keyword_args)) 613 end
Create a new <W> element
- words
-
Words to speak
- role
-
Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning
- keyword_args
-
additional attributes
# File lib/twilio-ruby/twiml/voice_response.rb 620 def w(words, role: nil, **keyword_args) 621 append(SsmlW.new(words, role: role, **keyword_args)) 622 end