Use Plum's Transcription API
<?xml version="1.0"?>
<vxml version="2.1">
<form>
<block>
<prompt>
The following is an example of prompting a caller to leave a recorded message, then sending that message to our real-time-transcription API, and finally have the system read back the transcription as TTS.
</prompt>
<goto next="#record"/>
</block>
</form>
<form id="record">
<var name="callrecording"/>
<record name="myrecording" beep="true">
<prompt>
Please leave a recorded message after the beep. When you are done recording, press the pound key.
</prompt>
<filled>
<assign name="callrecording" expr="myrecording"/>
</filled>
</record>
<subdialog name="transcription" src="subdialog.php" namelist="callrecording" method="post" enctype="multipart/form-data"/>
<block>
We transcribed your message as, <value expr="transcription.message"/>.
</block>
</form>
</vxml>Last updated