No description
pi-phone | ||
stupid-option-2 | ||
track-generator | ||
.dockerignore | ||
.gitignore | ||
build.sh | ||
deploy.sh | ||
Dockerfile | ||
elevator-music.mp3 | ||
flow.jpg | ||
go.mod | ||
go.sum | ||
piphone.system | ||
README.md |
pi-phone
In a pinch? Need 100 digits of Pi? Call the Pi Hotline! 01834 820860
This codebase and the associated audio files forms the basis of a Twilio TwiML application that plays out a little something like this:
Twilio is configured to, when the phone is called, run a webhook that points to the /api/calls/new
route of the Go app contained in this repository.
There is a small web page that is used to manually initiate phone calls, and the backend can be configured to schedule calls to be made at certain times.
The project structure is:
/pi-phone
- the main Go code that runs the TwiML server/pi-phone/static/audio
- the source audio files to be played down the phone line - these were lifted from this online TTS service with minor modifications.
/stupid-option-2
- source audio files that were compiled to make/pi-phone/static/audio/option-two.mp3
/track-generator
- a small Python script used to generate an audio file reading the digits of Pi at a suitable speed
A systemd service is included in the base of this repository, and serves as an example of how to configure the server's environment variables.