我想将文本转换成语音信息并发送给用户电话否,目前我使用的是使用TwiMLTM的调用api。
<?php
// Get the PHP helper library from twilio.com/docs/php/install
require_once('/path/to/twilio-php/Services/Twilio.php'); // Loads the library
// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "xxx";
$token = "{{ auth_token }}";
$client = new Services_Twilio($sid, $token);
$call = $client->account->calls->create("+343443", "+3444", "http://demo.twilio.com/docs/voice.xml", array(
"SendDigits" => "1234#",
"Method" => "GET"
));
echo $call->sid;它是工作的,但这是打电话给用户,但我们需要语音信息。
注意:消息来自文本区域。
发布于 2014-01-24 09:49:57
https://stackoverflow.com/questions/21326017
复制相似问题