Is it possible to change dialing tone? - twilio

I want to change the standard dialing tone and can not find if it is possible in the twilio documentation.
In the web client (Flash or HTML5) is it possible to upload a custom media file to play while a callee is being dialed?

You can use the sounds reference as #gediminasgu explains found here: https://www.twilio.com/docs/client/device#sounds
Disable incoming ringtone calling
Twilio.Device.sounds.incoming(false). Then you will need to hookup
to event Twilio.Device.incoming and manually start the ringtone and
hookup to other events to stop playing music when call is
answered/cancelled.

Related

Use external audio stream as microphone input for Twilio Voice call

I want to use an incoming audio stream (microphone from an external device) as the microphone input for an outbound Twilio Voice call.
The external device serves as a softphone, and does not currently support WebRTC. Instead it currently sets up 2 separate connections to a server: 1 for outgoing audio (microphone), and 1 for incoming audio. Bots connections (streams) are set up using gstreamer (gst-launch).
The server sets up a voice call and should somehow use the incoming audio stream as the microphone input for this call. I have already found the Stream instruction able to send the calls' audio back to the external device.
Can anyone point me in the right direction, maybe suggest some SDK functionality?

WebRTC iOS Audio Chat

I am creating a voice only (no video) chat application. I have created my own node.js/socket.io based server for signaling.
For WebRTC, I am using the following pod: https://cocoapods.org/pods/WebRTC
I have been successful in creating peer connection, adding local stream, setting local/remote sdp, and send/receive ice candidates. The "didAddStream" delegate method is also called successfully having audio tracks but I am stuck here. I don't know what should I do with the audio track. What should be the next step? How would I send/receive audio on both sides?
Also, if I integrate CallKit, what changes do I need to make.
I got stuck on this one too. You have to retain the RTCMediaStream object in order for the audio to play. You don't need to do anything with the RTCAudioTrack, it will play automatically. I simply assign it to property so it can get retained. See my example here: https://github.com/redfearnk/WebRTCVideoChat/blob/master/WebRTCVideoChat/WebRTCClient.swift#L143

Sinch app-to-phone calling can't hear dial tone sometimes

i'm using Sinch iOS SDK to call from app-to-phone.
i'm testing it by dialing to another mobile i have and when I let it ring some of the calls play the dial ringing tone and some don't. I can't reproduce a pattern that causes this.
Any ideas?
Its actually depends on what carrier you are calling, if you log on callProgressing you will notice that the onprogressing wont fire sometimes until much later for the ones that play no ringing (AT&T is one that dont playit).
To give the user some feedback while waiting for progress, you can play a local ringback (you can find that file in our sample apps) until you get callProgress.

Detect a pause during call in iPhone

I have a requirement to detect a pause while speaking over call(It may be VOIP call) and send an pre-recorded reply automatically using Core Audio API. I explored Twilio APIs as well, I want to know feasibility of following things -
Is it possible to detect pause while caller from other side speaks, be it on normal call or VOIP call?
Is it possible to insert a prerecorded audio file during live call in iOS??
After the introduction of CallKit in iOS 10, you can detect whether the user has performed any action with DTMF which is usually the way to answer an IVR call. In case of normal human interaction it should not be possible because every call has this property of supportsDTMF
In a reverse scenario you can add soft and hard pauses while dialing a call programmatically as well using a simple init call.

FMOD Voice Chat

I want to create a voice chat software using FMOD.
Now I can receive data from microphone and play it immediately.
It's also easy to send sound data to another computer on the network.
But I don't know how to play the sent data on the other computer with FMOD.
Can anyone help me?
When you receive the incoming sound data on the destination machine you need to create a streaming buffer to play the audio. The simplest method would be to look at the userccreatedsound example. It shows how to create a custom stream buffer and use the pcmreadcallback to populate the sound with data as needed.

Resources