PoeBlu / robocall101

Robocall on the fly with Python and Twilio - make a call with a robo-voice

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ROBOCALL101

about

This program posts a temporary XML/TWIML file to restwords.com
to use as a webhook. Then the Twilio API connects to that webhook
to make a robocall on-the-fly. The Twilio bot will transcribe and
speak exactly what you pass with the -c option (including swears,
most slang, and large numbers).

A text may also be sent with the -t option.

Arnold is having a bad day - Use the -a option.
(for extreme circumstances only)

Requirements

  • Python3 and pip install twilio
  • Obtain your Twilio Credentials and Twilio Number
  • Set the following environment variables:
    1. TWILIO_NUMBER=18885551234
    2. TWILIO_ACCOUNT_SID=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    3. TWILIO_AUTH_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Twilio is free to try, but I recommend getting a paid number for $1 a month.


example usage:

  • ./robocall101.py -n 18881234567 -t "hello world"
  • ./robocall101.py -n 18881234567 -c "hello world"
  • ./robocall101.py -n 18881234567 -a
  
REQUIRED:
-n <outgoing number> 

PICK ONE:
-c/--call <text/string here> (Robocall on thy fly)
-t/--text <text/string here> (Send an SMS text message)
-a/--arnold (Call with Arnold recording)
  

optionally install from git:


pip install git+https://github.com/rootVIII/robocall101
(or pip3 depending on your setup)

This was developed on Ubuntu 18.04.4 LTS.
Author: rootVIII 09NOV2019

About

Robocall on the fly with Python and Twilio - make a call with a robo-voice

License:MIT License


Languages

Language:Python 100.0%