A web app to generate lyrics in the style of over 40 artists. The web app was build using React.js and the Material-UI framework.
-
Install Packages
npm install
-
Start the development server
npm start
-
Production Build
npm run-script build
A markov model trained for each individual artist from is first used to generate lines of lyrics. The dataset of lyrics is pulled from Lyrics Beast.
To create the rhymes an LSTM was trained to predict a rhyme pattern based on the previous lines and artist style. The lines of lyrics generated by the markov model are then rearranged to best suite this rhyming style.
Since the web app uses React Router, there needs to be a redirects file _redirects
added in the dist
folder when the app is deployed to Netlify. Otherwise url routes will never go to index.html
and React Router will not work, resulting in a page not found error.
A webpack script automatically adds a _redirects
file to the dist
folder, after running the build command.