How to turn on text to speech engine in Twilio?

103 views Asked by At

I would like to not only record calls but turn on text to speech. Twilio samples are pretty vague how to use <Record> verb(inside, next or outside the <Dial> verb) so I turned the recordings by:

<Response>
<Dial record="true" callerId="48326304351">
<Client>jenny</Client>
</Dial>
</Response>

The call is successfuly recorded, but I would like to turn on text to speech engine.

When I did this:

<Response>
<Dial callerId="48326304351">
<Client>jenny</Client>
</Dial>
<Record timeout="20" transcribe="true"/>
</Response>

The recording is not present also I have no idea where transcription of the audio is.

I tried also this, altough I don't even know where the transcribtion would be:

<Response>
<Dial record="true" transcribe="true" callerId="48326304351">
<Client>jenny</Client>
</Dial>
</Response>
1

There are 1 answers

2
philnash On

Twilio developer evangelist here.

The transcription (speech to text) service is currently only available on the <Record> verb in TwiML. Notably it can only be used to transcribe messages 2 minutes or less in length as well.

There is no option to transcribe two (or more) legged calls.