Skip to content

Instantly share code, notes, and snippets.

@RobSpectre
Created March 31, 2012 01:12
Show Gist options
  • Save RobSpectre/2258430 to your computer and use it in GitHub Desktop.
Save RobSpectre/2258430 to your computer and use it in GitHub Desktop.
Optional recording keywords
@app.route('/voice', methods=['POST'])
def voice():
response = twiml.Response()
response.say("Leave a message.")
response.record(action="recordHandler", finishOnKey="#", maxLength="20")
return str(response)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment