Code Monkey home page Code Monkey logo

rapviz's Introduction

rapviz ๐Ÿ”ฅ

Visualize your bars right in the browser!

About

This project was inspired by one of my favourite YouTube trends, the "rap visualizer" video. Take a look a Genius' Check The Rhyme or Vox's Rap Deconstructed as examples. We thought we could leverage NLP, a couple of free APIs, and some basic React to create a website that generates these kinds of 'highlighted' rhymes. Introducing: rapviz!

The app consists of a Flask REST server. This API interfaces with Genuis, and does a bit of work to produce a rhyme response the frontend understands. The frontend allows the user to connect to Spotify and detects what song they're currently listening to. It then visualizes the rhymes. Deployment is done via Railway.

Usage

Head to <URL> to try it out!

To run the app locally, see the below instructions for the client and server code.

Client

The client is written in React, and uses create-react-app. Its dependencies are as follows.

  • node, >=v18.16.0
  • npm, >=v9.5.1
  • yarn (preferred over npm), >=v1.22.19
  • (optional) nvm, >=v0.39.2

To get setup, run the following commands.

$ cd client
> (now at **/rapviz/client)

$ yarn
> yarn install v1.22.19
> ...

$ yarn start
> yarn run v1.22.19
> ...
>

Server

The server is a simple Flask app. Its dependencies are as follows.

To get setup, run the following commands.

$ cd server
> (now at **/rapviz/server)

$ python3 -m venv env
> (creates a virtual environment called `env`)

$ source env/bin/activate
> (activates said enviornment)

$ which pip
> $HOME/rapviz/server/env/bin/pip

$ pip install -r requirements.txt
> (install the dependencies)

$ python -m main.py
> (run the server)

See more

rapviz's People

Contributors

daniijal avatar dependabot[bot] avatar michaelfromyeg avatar projectsbyjackhe avatar rmehri01 avatar stuffbyliang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

daniijal

rapviz's Issues

Add lyrics data layer

Using git as a data store (michaelfromyeg/lyrics), create a custom lyrics and rhymes database. Try pulling from there first; on missing, query Genius and save. Allow manual uploads to this DB.

Stream rhyme scheme

Rather than flash the entire rhyme scheme, there should be an option to stream the highlighting, like in the videos.

Add file upload functionality

Would function basically the same to Spotify, except lyrics would be fed from .txt, .docx., etc.

(I actually believe there's a lyrics file format too; that should be supported. This way users can work with custom songs.)

Cleanup the freestyle page

  • should be change to a <textarea>
  • output should have max-width so it displays comfortably in the center of the screen and should use the same scrolling as the Spotify compnent

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.