Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant