Make some space for a hilarious AI Rapper in the house trained using a Markov Chain

in #funny8 years ago (edited)

Hello everyone, I hope you're doing well. I'm a big time hip-hop head and I love writing my own poems and raps. I post most of them on Steem as poetic stories. Today, I present to you a Python-based Neural Network that raps.

MC ANN



Source:

I did not write the ANN but I tried modifying the parameters as per my need as it's an open source project available on Github. It writes the rap word by word using a Markov Chain. I had great time fiddling with it and training it on various songs.

Pro Tip: Take a guess before looking at the inputs to see if you could possibly get any references.


IN ACTION

Writing the rap word by word using Markov Chain

generated.PNG

Building the model: collection of word-by-word lyrics
post_markov.PNG

Building the list for all the possible rhymes
rhymes.PNG

Writing the verses to neural_rap.txt //AI dropping the mic!
inaction.PNG

OUTPUT


Note again: These lyrics were rearranged and generated by a computer program.


The tune will come to grips with the rest of the room.
I think I'm starting to feel distant again.
And a new outlet, and I know, be humble.
It's Friday night and I know, be humble.

...
In order for me to the tale I'm about to tell.
When I look to the tale I'm about to tell .
Watch my soul speak, you let me do the extras.
Lately I've been hard to reach, I've been hard to reach, I've been hard to swallow.
But I need a new outlet, and I know one fact I'll be one tough act to follow.

...
It's Saturday and I know, be humble. sit down.
Look at shit through each other's shoes, at least.
It's Friday night and I got you baby.
Just stay true to you at last..
Go inside each other's shoes, at least.

...
So are you trying to get through, oh?. Are you calling me, are you calling me?
Just as soon as I can feel the beat.
Yes, there are two paths you can fit your feet.
Go inside each other's eyes.

...
The tune will come to grips with the rest of the world, God gave you them shoes.
In a tree by the door and pack his bags.
As long as I walk in.
La, la, la, la, la.
La, la, la, la, la, la, la.

...
It's Saturday and I won't be the greatest, funk.
So why don't you all sit down?. Listen to the P.M., P.M. to the A.M., funk.
And if you can go by.
There walks a lady who's sure.

...
When I look to the closest restroom.
But she wants to show.
Or come to you so.
I need that spark to get through, oh?. Are you reaching out for you?. So oh oh.
So are you trying to get through, oh?. Are you reaching out for you?. So oh oh.

...
Are you calling me, are you calling me?
Lately I've been hard to reach, I've been hard to swallow.
But I know one fact I'll be you, let's trade shoes.
Let's see if you listen very hard.

...
Up and try to avoid any eye contact.
Who sat on the wall.
None
But I just want to be me.

...


INPUT:

The input to deeprap.py was the lyrics from 4 different songs;

1. Beautiful by Eminem

[Source:](https://www.youtube.com/watch?v=lgT1AidzRWM)

2. Cheap Thrills by Sia



Source:

3. Humble by Kendrick Lamar



Source:

4. Stairway to heaven by Led Zeppelin



Source:


Check out the project, fork it, fiddle with it, contribute to it and share it :D


Rapping Neural Network


Much much thanks to the developer, Robbie!


isteemit

Click here to follow me :) Thank you :D

Sort:  

Would be cool now to find a robot to rap it ;)

Absolutely! The project also includes a speechtest.py file; running which - does make the program rap in a robotic voice :D
That voice is not as exciting as it sounds though. Lol

great...your post deserve upvote and resteem...

Thanks a lot @lautenglye! I appreciate it :D

u r welcome...

Algo and the Rhythms

Soundwavesphoton - Are you a physicist? :P

Only in my imagination.

Pretty nice job in here, so upvoted, followed and resteemed, i like it, keep this awsome!!

Thanks a lot @elflictron! I appreciate your support :D

My pleasure!!

I love ur post..!

Glad that you like them, @yusaymon. Thanks! :D

Wkwkwk, who is funny your update,,
When we song together @isteemit.. , :-)
Please follow me @mukliss