We watched videos in which women called 911 to seek help by pretending to order pizza. In some cases, the dispatchers understood the code. In many cases, the dispatchers did not and hung up the phone. We created 911 Pizza to translate these cryptic Pizza orders and calls 911 describing the caller's situation.
What it does
911 Pizza uses the SpeechRecognition API to receive the user's 911 Pizza order through voice recognition and convert it to text. Then, it pattern-matches the user's order and replaces some cryptic messages into easy-to-understand crime reports. After that, it calls 911 via the Twilio API and tell the police about the user's situation.
911 Pizza has a "Menu" that contains a set of Pizza terms used to describe the user's dangerous situation. The "Menu" is updated and randomized to prevent abusers from knowing the meaning of 911 Pizza orders.
How we built it
- We brainstormed the idea.
- We did more research.
- Mario started building the bare-bone of the web app.
- Then, Stephanie worked on the front-end while Mario worked on the SpeechRecognition API.
- Mario finished implementing SpeechRecognition and started implementing Twilio.
- Stephanie made the landing and the "menu" pages.
- Mario coded the pattern-matching algorithm to convert cryptic messages into nice, voice reports to 911.
- We tested it out.
Challenges we ran into
- We initially wanted to use Google Cloud's Speech-to-Text app. We spent 4 hours researching and trying to make it work but we could not. We could not understand how to connect Google's virtual terminal to our local terminal.
- When we connected the node back-end to the front-end, there was a problem with the Twilio API. We were not able to send SMS. It turned out that the problem was we were using a VSCode Plugin to run our server, and it did not register the request.
- Time constraint was also a challenge because we had a lot of homework and lived in different timezones.
Accomplishments that we're proud of
We are extremely proud of being able to learn how to build as well as creating a functioning Node.js app in our first attempt in less than 48 hours. We are also proud of the mission and the use cases of our app. We think that 911 Pizza is solving a very specific problem in a very unique way. We believe that 911 Pizza will help a lot of people in difficult situations.
What we learned
- We learned a lot about full-stack web dev with Node.js.
- We learned about http requests.
- We learned about how to prettify front-end designs.
- We learned about how to implement Twilio Calls in Node.js.
- We learned abot how to use SpeechRecognition.
What's next for 911 Pizza
- We will build a mobile app version of 911 Pizza.
- We will limit the number of orders to prevent users from spamming 911.
- Right now, we hard-coded the randomization of the "Menu". In the future, we want to automate this process.