如何改变twilio rest api的声音?

PiK*_*KaY 1 ruby twilio

我正在尝试使用twilio创建一个示例应用程序,其中进行调用.我通过twiml-ruby宝石生成twiml.我只是想知道如何改变女性的声音.

当我使用时,默认现在是man

r.Say "hello world"
Run Code Online (Sandbox Code Playgroud)

如何传递语音参数?

nic*_*oga 5

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

文档指定了一个语音参数:

r.Say 'hello there', :voice => 'woman'
Run Code Online (Sandbox Code Playgroud)