Full explaination of the code is at TowardsDataScience - Medium
- Create a virtual environment
# virtualenv --no-site-packages env
- Activate the environment
# source ./env/bin/activate
- Install all the requirements
# pip install -r requirements.txt
- Run the program
# python3 main.py
- Play the generated wav file
# aplay twinkle-twinkle.wav