All Projects → paladini → py-simple-lyric-generator

paladini / py-simple-lyric-generator

Licence: other
A simple Markov chains lyric generator written in Python.

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to py-simple-lyric-generator

JiosaavnAPI
Unofficial JioSaavn API Written in Javascript
Stars: ✭ 68 (+300%)
Mutual labels:  lyrics, song
genius-lyrics-api
A library for fetching song lyrics & album art from genius.com 🎶🌈
Stars: ✭ 129 (+658.82%)
Mutual labels:  lyrics, song
markovipy
Yet another markov chain sentence generator
Stars: ✭ 24 (+41.18%)
Mutual labels:  markov-chain
markovclick
Python package to model clickstream data as a Markov chain. Inspired by R package clickstream.
Stars: ✭ 29 (+70.59%)
Mutual labels:  markov-chain
statblock5e-creator
A frontend web application for creating creature statblocks for Dungeons and Dragons 5th Edition.
Stars: ✭ 15 (-11.76%)
Mutual labels:  creator
esp8266-oled-ssd1306-font-creator
Font creator for the esp8266-oled-ssd1306 library
Stars: ✭ 22 (+29.41%)
Mutual labels:  creator
dreamsnap
Real life through the eyes of an artist
Stars: ✭ 16 (-5.88%)
Mutual labels:  artists
ezaction
基于cocos creator的2D动画框架。An extension animation framework for cocos creator.
Stars: ✭ 24 (+41.18%)
Mutual labels:  creator
4chanMarkovText
Text Generation using Markov Chains fed by 4chan APIs
Stars: ✭ 28 (+64.71%)
Mutual labels:  markov-chain
lyricsmaster
LyricsMaster is a library for downloading lyrics from multiple lyrics providers.
Stars: ✭ 18 (+5.88%)
Mutual labels:  lyrics
AALpy
An Active Automata Learning Library Written in Python
Stars: ✭ 60 (+252.94%)
Mutual labels:  markov-chain
deadbeef-lyricbar
A simple plugin for DeaDBeeF audio player that fetches and shows the song’s lyrics
Stars: ✭ 26 (+52.94%)
Mutual labels:  lyrics
Lyrics-to-Audio-Alignment
Aligns text (lyrics) with monophonic singing voice (audio). The algorithm uses structural segmentation to segment the audio into structures and then uses hidden markov models to obtain alignment within segments. The final alignment is concatenation of time stamps of lyrics within the segments for each song.
Stars: ✭ 57 (+235.29%)
Mutual labels:  lyrics
Markov-Word-Generator
A web app that uses Markov chains to generate pseudorandom words.
Stars: ✭ 33 (+94.12%)
Mutual labels:  markov-chain
SimInf
A framework for data-driven stochastic disease spread simulations
Stars: ✭ 21 (+23.53%)
Mutual labels:  markov-chain
muCLIar
YouTube automator bringing you your music right on your CLI.
Stars: ✭ 119 (+600%)
Mutual labels:  song
vcplayerbot
Play songs directly in telegram voice chats.
Stars: ✭ 48 (+182.35%)
Mutual labels:  song
comments-generator
A Reddit bot that generates new context-aware comments using Markov chains trained from a set of given users or subreddits comments history.
Stars: ✭ 63 (+270.59%)
Mutual labels:  markov-chain
limnoria-plugins
Limnoria plugins I wrote or forked.
Stars: ✭ 35 (+105.88%)
Mutual labels:  lyrics
tidal-lyrics
Get the lyrics of what you're listening on Tidal
Stars: ✭ 39 (+129.41%)
Mutual labels:  lyrics

py-simple-lyric-generator

A simple Markov chains lyric generator written in Python.

This small project generate new lyrics based on the lyrics of a given artist. For example, you can ask the script to generate Pink Floyd-like lyrics, so it will read all the lyrics from Pink Floyd and generate a new one with the same style.

I've made a small "database" too, so whenever you load all lyrics from a given artist it will be saved on your computer under the db folder. This way we can avoid a lot of API calls (that are quite expensive).

Dependencies

Usage

The program expects the following arguments:

python3 py-simple-lyric-generator.py "<name of the artist>" <number_of_phrases_to_generate>

For example, if you want to generate 10 sentences based on Pink Floyd lyrics you should run:

python3 py-simple-lyric-generator.py "Pink Floyd" 10

Then you'll get somewhat like that:

I'd be gone
Cause I'm the man on the outside looking in
Playing to rules
Lotuses lean on each other in yearning
The Schoolmaster
And all that you see
And if you don't mind
It's awfully considerate of you to leave, Lucy
Wheeling, soaring, gliding b Instrumental He made his way to the see-saw It's awfully considerate of you to think of me here
Don't accept that what's hap One sound, one single kiss

If you want to reset cached artists from the database, just run the following:

chmod +x clean_db.sh
./clean_db.sh

How it works?

This's my first experiment within lyrics generation with Markov chains, but I've read some texts and a lot of examples. In order to understand how can I generate lyrics, please check the following links:

And here you can check some projects on Github that helped me:

About

The py-simple-lyric-generator was created by Fernando Paladini on 01-17-2016, but it was heavily based on another open-source projects you can find at the web. If you have any issue, doubt, problem or suggestion, please feel free to create a new Issue or even contact me at fnpaladini at gmail dot com.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].