Transcribe

From SoftIVR

Jump to: navigation, search

transcribe

transcribe(template, audio, object) turns audio in to text. It takes three parameters:

  • template: the name of a template for the transcription job. Valid templates are listed below.
  • audio: a WAV file containing the audio to be transcribed.
  • object: the name of a JavaScript object which will be filled in with the transcription result.

transcribe returns 1 if the transcription succeeds, or 0 if it fails.

Note that transcriptions take a long time - from a few to several minutes - and so should only be used in an onHangup handler. Otherwise the caller will hear silence while the transcription is taking place, and is likely to hang up anyway. For a good example of its use, see the voicemail sample application.

Templates

Voicemail

Designed for transcription of a voicemail, returning the following properties in the specified object:

  • name: the name of the person who left the voicemail
  • sender: their number (if left) to call them back on
  • transcription: a transcription of the entire voicemail

Return to Javascript functions.

Personal tools