Giter VIP home page Giter VIP logo

real-time-lyrics's Introduction

Real time lyric detection

godzilla gif godzilla zoom gif

Setup

$ python3 -m pip install -r requirements.txt

Set the environment variables in .env or elsewhere:

  • ACR_ACCESS_KEY
  • ACR_ACCESS_SECRET
  • SPOTIFY_ID
  • SPOTIFY_SECRET

Then simply

$ python3 acrcloud_cmdline.py

The program will first record audio from the microphone, then identify it using acrcloud. Next the identified song is looked up on LRC sites

OR

$ python3 lyrics_spotify_camera.py

This program will find the spotify playing song, and create a camera using OBS-Camera with lyrics.

Current bugs with acrcloud_cmdline

  • If you find a snippet in a chorus, the lyric timing will be off if it identifies the chorus in another part of the song instead.

  • Sampling can lead to the program searching for a very old or relatively unknown song before the main song.

  • The original swear words cannot be recovered if the word is completely starred out. E.g. **** does not work, but d**k -> dick.

Other quirks

The out.wav file and logs/res_dump.json are written to the current directory every record / identification cycle.

real-time-lyrics's People

Contributors

reteps avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

notclement

real-time-lyrics's Issues

Not accepting my spotify_id

I create an account at spotify , but not accepts, returns spotipy.oauth2.SpotifyOauthError: error: invalid_client, error_description: Invalid client

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.