My Voice is my Passport, Verify Me — Condo Access via Twilio+Voice

Image for post
Image for post
Photo by Michael Jasmund on Unsplash

It’s been raining a lot in Oakland recently, and somehow the keypad on the condo security panel shorted out and no longer works. This means that my old method of using Twilio to dial a passcode to let me into the building no longer works.

I can open a call to the Twilio number, but I can’t use dial tones — but what about voice? Surely there’s a solution for speech to text and then it can be like Sneakers!

Enter Twilio Autopilot. The quickstart is a great way to get up to speed. This article will give you everything you need from there to make the system work by leveraging Twimlets.

The requirements are:

  1. Let in callers who know the password by replying with a DTMF #9 dial tone.

Once you have your Twilio account, navigate to https://www.twilio.com/console/autopilot and create an autopilot.

We’re going to build four tasks. Go to the Task Builder and create your first task “Answer”, “call-A”, “call-B”, and “open-door”

The secret sauce is in the Open Door script which plays a mp3 version of DTMF9.

Next, go to Defaults and ensure that assistant initiation is set to “answer” and the fallback will be to call you.

Image for post
Image for post

Next, go to the “Natural Language Router” and create four items, and link them to your tasks.

  • “My voice is my passport, verify me” -> Open Door

To finish everything up, build the voice model in the Natural Language Router panel.

Image for post
Image for post

Give your system a run on the Overview page.

Image for post
Image for post

To connect this to your phone number, go to Channels and select Programmable Voice.

Image for post
Image for post

Create a new TwiML app here: https://www.twilio.com/console/phone-numbers/runtime/twiml-apps

Image for post
Image for post

Go to your phone number, and set Configure with to TwiML App, and select ‘open-door’.

Image for post
Image for post

Hit save, and you’re all set. Handoff that phone number to your HOA, and you’re done.

Written by

Chair @ Center for Election Science. Not really an antagonist.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store