PiKaY
PiKaY

Reputation: 289

how to change the voice in twilio rest api?

I am trying to create a sample app with twilio wherein a call is made. I am generating the twiml through the twiml-ruby gem. I just want to know how to change the voice to woman in this.

default now is man when i use

r.Say "hello world"

how to pass that voice parameter?

Upvotes: 1

Views: 369

Answers (1)

ichigolas
ichigolas

Reputation: 7725

https://github.com/twilio/twilio-ruby#getting-started-with-twiml

The documentation specifies a voice parameter:

r.Say 'hello there', :voice => 'woman'

Upvotes: 5

Related Questions