Contact Sales

All fields are required

Snippet: Voicemail Transcription | SignalWire

Snippet: Voicemail Transcription

This snippet will show you how to implement a transcription process for a recorded voicemail message. The resulting text will be emailed to the given address.

You will need a machine with Python installed, the SignalWire SDK, a provisioned SignalWire phone number, and optionally Docker if you decide to run it in a container.

For this demo we will be using Python, but more languages may become available.

  • Python
  • SignalWire SDK
  • SignalWire Phone Number
  • MailGun Account (For administrator notifications,
  • Docker (Optional)
How this Voicemail Transcription application works

We are going to build off of our Simple IVR Menu, and add ring groups

Methods and Endpoints
Endpoint: /voice_entry
Methods: GET OR POST
Handles incoming voice requests
Endpoint: /transcribe_webhook
Methods: GET OR POST
Processes the transcription actions, i.e Sending Email.
Endpoint: /recording_webhook
Methods: GET OR POST
Provided for informational purposes, if you would like to see the recording status information.
Endpoint: /hangup
Methods: GET OR POST
Handles voice hangup.

Setup Your Environment File

  1. Copy from example.env and fill in your values
  2. Save new file called .env

Your file should look something like this:

## This is the full name of your SignalWire Space. e.g.:
EMAIL_SUBJECT=Voicemail Transcription
Build and Run on Docker

Let's get started!

  • Use our pre-built image from Docker Hub:
For Python:
docker pull signalwire/snippets-voicemail-transcription:latest
  • Or build your own image:
docker build -t snippets-voicemail-transcription .
  • Run your image:
docker run --publish 5000:5000 --env-file .env snippets-voicemail-transcription
  • The application will run on port 5000
Build and Run Natively

For Python:

1. Replace environment variables
2. From command line run, python3
More Documentation

You can find more documentation on LaML, Relay, and all SignalWire APIs at:


If you have any issues or want to engage further about this snippet, please open an issue on this repo or join our fantastic Slack community and chat with others in the SignalWire community!

If you need assistance or support with your SignalWire services please file a support ticket from your Dashboard.