twilio

Send twilio speech result to working function

妖精的绣舞 提交于 2020-01-24 21:07:29
问题 Hello I have the following working function. I am having trouble using the or functions properly. Here is the working porting of the code. I have tried: let twiml = new Twilio.twiml.VoiceResponse(); twiml.say({ voice: 'man', language: 'en-gb' }, 'Hello I.T.'); CODE: const got = require('got'); exports.handler = function(context, event, callback) { I want to record the first 15 seconds of the call and replace "test" with event.SpeechResult.toString() const requestBody = { text: "test" }; got

Send twilio speech result to working function

旧巷老猫 提交于 2020-01-24 21:06:10
问题 Hello I have the following working function. I am having trouble using the or functions properly. Here is the working porting of the code. I have tried: let twiml = new Twilio.twiml.VoiceResponse(); twiml.say({ voice: 'man', language: 'en-gb' }, 'Hello I.T.'); CODE: const got = require('got'); exports.handler = function(context, event, callback) { I want to record the first 15 seconds of the call and replace "test" with event.SpeechResult.toString() const requestBody = { text: "test" }; got

Twilio Programmable Chat throwing Can't connect to twilsock

淺唱寂寞╮ 提交于 2020-01-24 19:33:07
问题 When I'm trying to use the programmatic chat I'm constantly getting this error Error: Can't connect to twilsock at t (twilio-chat.min.js:204) at t (twilio-chat.min.js:204) at new t (twilio-chat.min.js:204) at e.value (twilio-chat.min.js:204) at t.value (twilio-chat.min.js:204) at twilio-chat.min.js:204 at t.<anonymous> (twilio-chat.min.js:204) at twilio-chat.min.js:168 at t.a.emit (twilio-chat.min.js:168) at t.value (twilio-chat.min.js:175) I followed all the instruction for the repo I'm

Implementing Twilio's incoming calling code from activity into Service class but get error each time

…衆ロ難τιáo~ 提交于 2020-01-23 18:09:36
问题 Here, I'm trying to show a Dialog for incoming call which is working fine when I implement within an activity but I want to implement in a background service so i can get call anytime when someone calls. I'm using Service for background process but I'm not getting proper success due to some methods. I always get error in same line when I implement in Service but never gets error in Activity. I'm starting this service from BROADCASTRECEIVER public class BReciever extends BroadcastReceiver {

how to configure call url in twilio api

南笙酒味 提交于 2020-01-23 17:29:45
问题 i am creating a program for recieving the call, but every time i am calling via phone or browser it says a auto generated message : https://demo.twilio.com/welcome/voice/ i need to answer the call via phone and browser both, and which url i have to giv in twiml app for voice ? outgoing call or incoming?? if i am merging them no effect?? Twilio.Device.incoming(function (conn) { $("#log").text("Incoming connection from " + conn.parameters.From); // accept the incoming connection and start two

Generate voice call using twilio

寵の児 提交于 2020-01-23 04:01:06
问题 I have developed a small application using twilio api to make call to any phone number from my twilio number. After dialing call is establishing and a specific audio clip is playing in mobile end. But I am not getting any real voice in any side of the call. Please help me or give me some information regarding how can i get voice in voice call using twilio api. Thanks, Tanim Code snippet: $client = new Services_Twilio($AccountSid, $AuthToken); $call = $client->account->calls->create("My Twilio

Error:Failed to resolve: com.google.android.gms:play-services-auth-api-phone:10.2.5

心不动则不痛 提交于 2020-01-17 14:17:11
问题 I am using Twilio for SMS verification for my Android app, but when I add the repository of Twilio verification dependency( compile 'com.twilio: verification:+' ) the Gradle can not be built and shows the following error: Error:Failed to resolve: com.google.android.gms:play-services-auth-api-phone:10.2.5 can anyone help me! and I installed and update the repositories. note: for the first time it let me update the repository but now it doesn't let me update the repository. 回答1: Same Problem

Initiating Outbound Calls with TWILIO

二次信任 提交于 2020-01-17 04:49:05
问题 I have a C# Service using TWILIO API and I am having issues at the moment trying to use the InitiateOutboundCalls function. private void SendCall(string cellNumber, string message) { Call callResult; callResult = _client.InitiateOutboundCall(twilioNumber, employeeNumber, message); TwilioRestExceptionCheck(callResult); } This is the little function in the C# Service which is supposed to call the employee with this twimlbin code (the message variable as above): <?xml version="1.0" encoding="UTF

Twilio Studio beta Flow with sequence of Send and Wait for Reply actions

前提是你 提交于 2020-01-16 18:31:25
问题 Is it possible to string together several Send and Wait for Reply actions with a Twilio Studio beta Flow? I am trying to ask the recipient a sequence of questions, one by one, with potential branching using the Split action, and then finally make an HTTP request back to my server with the answers from all the questions. I trigger the start of the flow with a REST call and the first action of the flow works (the first Send and Wait for Reply action) but after replying to the message, the flow

How to receiver audio file twilio whatsapp callback

蹲街弑〆低调 提交于 2020-01-16 16:00:16
问题 In Twilio console WhatsApp setting I've config the A MESSAGE COMES IN callback for receiver message from WhatsApp user. If the user sends an image, the call back has a parameter is MediaUrl0 to get the image. But if a user sends an audio file, no param in the callback to get it. Any way to get the audio file? Please help me. thank you. 回答1: Twilio developer evangelist here. At this time, Twilio does not support incoming media in WhatsApp messages. This support is being worked on. 来源: https:/