Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

interpret_as attribute incorrectly used in Ruby SSML example #753

Open
joeyparis opened this issue Mar 29, 2019 · 0 comments
Open

interpret_as attribute incorrectly used in Ruby SSML example #753

joeyparis opened this issue Mar 29, 2019 · 0 comments

Comments

@joeyparis
Copy link

require 'twilio-ruby'
response = Twilio::TwiML::VoiceResponse.new
response.say(voice: 'Polly.Joanna', message: 'Hi') do |say|
say.break(strength: 'x-weak', time: '100ms')
say.emphasis('Words to emphasize', level: 'moderate')
say.p('Words to speak')
say.add_text('aaaaaa')
say.phoneme('Words to speak', alphabet: 'x-sampa', ph: 'pɪˈkɑːn')
say.add_text('bbbbbbb')
say.prosody('Words to speak', pitch: '-10%', rate: '85%', volume: '-6dB')
say.s('Words to speak')
say.say_as('Words to speak', interpret_as: 'spell-out')
say.sub('Words to be substituted', alias: 'alias')
say.w('Words to speak')
end
puts response

As of twilio-ruby 5.22.0 The say_as method expects the interpret-as attribute to be passed in ruby as interpretAs and not interpret_as.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant