我想让用户在语音通话中说出我的Twilio号码。请帮助我,如何使用来获取用户在node.js代码中的通话内容?
const express = require('express');
const VoiceResponse = require('twilio').twiml.VoiceResponse;
const app = express();
app.post('/voice', (request, response) => {
const twiml = new VoiceResponse();
const gather = twiml.gather({
input: 'speech',
action: '/completed'
});
gather.say('Welcome, please tell us why you\'re calling');
console.log(response.toString());
});
app.listen(3004,function(){
console.log("Server Started");
});
当我拨打自己的Twilio号码时,在通话中出现应用程序错误。