abir
abir

Reputation: 1807

In Twilio is it possible to Gather and Record simultaneously?

In twilio response I can usually record an conversation and transcribe it. E.g.

<?xml version="1.0" encoding="UTF-8"?>
<Response>
 <Record transcribe="true" transcribeCallback="/transcribe"/>
</Response>

However I am interested to do the same with new speech option for Gather. e.g.

<?xml version="1.0" encoding="UTF-8"?>
<Response>
   <Gather input="speech" action="/completed">
       <Say>Welcome home!</Say>
   </Gather>
</Response>

However, though I can get the transcription in /completed handler SpeechResult parameter, I am unable to record gathered speech simultaneously. Is there any way I can use Record along with Gather ?

Upvotes: 1

Views: 1777

Answers (1)

philnash
philnash

Reputation: 73075

Twilio developer evangelist here.

You cannot use <Record> and <Gather> together, as you have discovered.

The only way I can think of that you could use to record the whole call, as well as doing the speech recognition parts is if you are generating the call yourself from the REST API. The you could set the Record parameter to true when making the call. This would record the entire call.

Let me know if that helps at all.

Upvotes: 3

Related Questions