Join egghead, unlock knowledge.

Want more egghead?

This lesson is for members. Join us? Get access to all 3,000+ tutorials + a community with expert developers around the world.

Unlock This Lesson
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Make a Twitter Audio Bot That Composes a Song Based on a Tweet


    Make a Twitter Audio Bot That Composes a Song Based on a Tweet - In the final bot lesson, we'll compose a ditty based on a tweet, save it as an audio file, and post it to Twitter. Because Twitter only supports uploading audio in video form, we'll learn how to create a video from the MIDI file and post it to Twitter. This is a longer video since we are going over how to create this pipeline from scratch.

    For more Natural Language Processing, see the course on Natural:

    We'll use RiTa to tokenize the text of a tweet and find the parts of speech:

    We'll use Jsmidigen to compose a tune in a MIDI format:

    We'll also use FFMPEG, which will help us create a video from our audio and a picture:

    And we'll use TiMidity to convert our MIDI file to a Wav file:

    You can use any image in place of the black image used in this video.