kanyerobot_LEAD

17-year-old Robbie Barrat, creator of the rapping AI program, “DeepRap.py;” Photo: Github


The robo-rock future race continues.

Hang Su’s Christmas ‘Neural Karaoke‘ machine had 3390-word vocabulary. And was terrifying in its entertainment. But this high school kid’s rapping computer is trained on 6,000 Kanye West lyrics and was made on a bet!

17-year-old Robbie Barrat was challenged by some classmates in his high school programming club, which he is the president of, to create with a neural network A.I. that could rap — something that sounds like everyday schoolyard shenanigans, right?

Dubbed “DeepRap.py,” the craziest part is that the A.I. spits out bars that are actually not half-bad. It nails the cadence of a rapper and spins rhymes that are pretty clever, even if it has the tendency to repeat itself now and then:

So dangerous, but it’s all terrific
I done wore designers I won’t get specific
It seem like fine hoes is hard to get some traffic
He claim her heart colder than the music
Man I wish I had to play in traffic

Deloreans, Brad Pitt, Real World Challange, playing in traffic, almost better than ‘Ye’s actual bars these days. Either way, it might be your first taste of the kind of music that your kids will jam under the control of our new robot overlords.

Barrat told Quartz: “Originally it just rearranged existing rap lyrics, but now it can actually write word-by-word,” Barrat said.

The difference is what allows the machine to nail the rhythmic vocalizations that follow the beat, instead of simply iterating the lines monotone on top of the music like Siri.

Barrat was able to build this machine mostly using open-sourced software (that is, software that does not require a license and is available and free to use online on sites like GitHub). Barrat started with a desire to build the machine, but did not have complete experience working with the programming language Python or the libraries like PyBrain which make neural networks possible.

To make up for any gaps in his knowledge he Googled whatever he didn’t know until he got everything put together correctly.

Now, he’s somewhat of an A.I. master as he brags: “I got a neural network to write piano melodies. I’ve been trying to get [neural networks] to generate abstract art. I don’t know if you can call teaching a neural network to make rap songs artistic, but I like to think that you can.”

Listen to the first song the bot created and dig on a fuller section of the lyrics, below:

To all my guys
You messin up my eyes
Fuck up your sleeves
And fire up the skies

They steal your whole sound, that’s a Real World Challenge
You an addict of cheating but I took the charge
Stop running up my money tall, height advantage
Ohhhhh, ohhhh; ohhh you too much to handle in one package
Not now but right now, you know… I had to go downtown
Shorty come and fix you up like bobby brown
Then he help me get my back up in this part of town
I can make you come and fix you up like bobby brown
Driving in the sky, you got a new crib to hold down
Shit’s about to go and put my mack berry down

So dangerous, but it’s all terrific
I done wore designers I won’t get specific
It seem like fine hoes is hard to get some traffic
He claim her heart colder than the music
Man I wish I had to play in traffic
You know when I heard it’s the way we was magic
When see me with a spit like a paraplegic
Wonder why it so hard not to play in traffic
Really Doe got a hell of a romantic
Lifestyles of the egotistic

The Delorean parked in front of that wack shit
The doctor don’t wanna hear that official shit
I’m in pajamas but I just want my credit
If this party ain’t got it I’m killing this shit
There’s only one girl on my Brad Pitt
Keep it up some god damn it I’m killing this shit
And I’m feeling smooth as the chorus hit
My homie called me like I owe her shit
But I need a girl who barely bra fit
Me and Common is back on my Brad Pitt
Man, you don’t get caught up with stupid shit
Then she cut from a girl who barely bra fit
How it feel to wake up with on some silly shit
I wish you could get is a whole city lit
That’s where I see they got it I’m killing this shit
Yeah you got a Benz and they ain’t done shit
Reality is catching up with stupid shit
Maybe that’ll work when you check, they ain’t done shit

I use it as always nigga, as always
Made her sit in that motherfucker sideways
Oh girl your silhouette make me pull the toys
I wonder where they want her to Ruby Tuesdays
Tell me what we at a ring from Tiffany’s
Yeah, tonight I see you in my home gym
When we die, the money should’ve changed him
I’m on TV talking like it’s all in my home gym
And see Penthouse 3 where a nigga from my team
He nicknamed me K-Rock so they abbreviate him
I don’t even want to talk some sense in him
Welcome to the most and they ain’t expect from him
The next generation will be assaulting him