๐ค RapGod - Build custom raps over SMS and phone calls!
https://github.com/wrussell1999/royal-hackaway-v2.git
Rap God is our creation from Royal Hackaway.
We won the Nexmo Prize (best use of their API) and best audio hack.
After being inspired by a friend's creation of a rap bot, we decided to build a bot that could alter existing rap songs to be about new topics. Then, of course, we needed a way to access the bot, and we wanted to do something with the Nexmo API, so we decided that we would interface with it using texts and phone calls.
The entire project is built in python. We've used quite a few libraries, including:
Our team was just two people,
To install:
$ git clone https://github.com/jedevc/royal-hackaway-2019.git
$ cd royal-hackaway-2019
$ virtualenv .env
$ source .env/bin/activate
$ pip install -r requirements.txt
Before you can run, ensure that you have created the required files for the Nexmo API and the Google Cloud Platform so that you can access their APIs.
To run:
python3 -m caller
...
Using the Nexmo API, we get the user to text our bot using SMS with the theme they'd like to use for their own rap. Then, we select a random song from our list of songs to use as a base. We then use NLP to tag the song and to modify it so that we replace some of the nouns with our desired subject, effectively changing what the song is about.
The result is then sent back to the user. This is done with a phone call, where the rap is sung back to them using a text-to-speech program.