Is it possible to simultaneously combine Play and Say verbs - twilio

The use case I'd like to create is to have some background audio play over a voiceover as part of an introduction to an IVR. Is it possible to combine the and verb at the same time?

Twilio developer evangelist here.
It's not possible to <Play> and <Say> at the same time. If you're after a message playing over music then I recommend you record the message and audio into the same audio file and play it with <Play>. That way you can guarantee the quality of the audio and voice together.

Related

Is it possible to receive streaming audio data from Twilio?

Is it possible to receive streaming audio data from Twilio? I would like to be able to do this rather than simply downloading a recording after it's complete.
Twilio developer evangelist here.
It is not possible to receive streaming audio data from Twilio for a phone call. Your options are to wait for a recording, or if you are looking for voice recognition, you can try using <Gather> with input="speech".
Twilio has just announced Streams ! It's a twiml verb that will communicate the audio through websockets to your server.
Otherwise you can try a solution I had worked on prior to their announcement: twilio-client.js-recording-bot

Disabled Twilio loudspeaker audio/video call in iOS

While doing video/audio call using Twilio then by default it's place the voice over loudspeaker also the call has lot of noise.
I want to override the loudspeaker and also to minimize the noise.
Twilio developer evangelist here.
You can set the audio output for Twilio Video using the TVIAudioController. If you set the audioOutput to TVIAudioOutputVoiceChatDefault then the audio should come out of the phone speaker, not the loudspeaker.
As for noise, I'm not sure how to help you there. Do you mean the voice is distorted? Or that you are hearing background noise?
(Posted answer on behalf of the question author).
TVIAudioController *audioController = [TVIAudioController sharedController];
[audioController setAudioOutput:TVIAudioOutputVoiceChatDefault];
//[audioController setAudioOutput:TVIAudioOutputVideoChatDefault];
The sound problem is due to same place where we are testing.

Audio record and play simultaneously

I am trying to develop an iOS app which reads sound from the microphone, apply some effects and play it through the headset instantly, may be with some acceptable delay.
Is this possible? As a first step, i am trying to play the sound received from microphone in my headsets at the same time, but struggling to do so...
I was able to record the sound, save it and then play it easily. Relevant questions, articles couldn't be found easily. Any ideas, links are much appreciated
I did check Apple's aurioTouch. I couldn't find simultaneous record and play of same signal.
Request the shortest buffers possible using audio session APIs (less than 6 mS is possible on most iOS devices). Then feed the raw audio samples you get from RemoteIO recording callbacks to the buffers in the RemoteIO play callbacks, possibly using a lock free circular fifo in between.

twilio doesn't play recorded voice message on server

Whenever I try to play a recorded voice message from phone, it does not get played during the twilio call using verb <play> but it plays mp3 songs very well. What could be problem with the recorded voice message?
Sumit, Megan from Twilio here.
Noticed you came to a solution above, but I wanted to point out the full list of supported audio MIME types for the verb <play> and some best practices for audio recordings, which seem to suggest WAV files over other types.

Change voice of text to speech openvbx/twilio

I am not satisfy with voice of text to speech in twilio. Currently twilio has provided men, women and Alice in voice for read text. Which is not clear sound. So i want to use my custom voice . Or is there any option to make clear sound while reading text to speech in openvbx to twilio.
Thanks in advance.
Twilio evangelist here.
Currently there is no way via the API to integrate your own custom TTS into Twilio. If what you want your callers to hear is fairly static you could create recordings of those messages and use the <Play> verb to play them to the caller.
https://www.twilio.com/docs/api/twiml/play
It might be possible for you to use your own TTS if you can have the TTS system save its output to WAV or MP3. Then you can use the <Play> verb to have Twilio play those audio files.
Hope that helps.

Resources