/CLI_LYRICS

Primary LanguagePythonMIT LicenseMIT

๐ŸŽต CLI Lyrics Translator ๐ŸŽง

A simple yet powerful Python-based CLI tool that fetches the currently playing song from Spotify, retrieves its lyrics using Genius, and automatically translates them into English using Deep Translator.


โœจ Features

  • ๐Ÿ” Detects the song currently playing on your Spotify account
  • ๐ŸŽค Fetches lyrics via Genius API
  • ๐ŸŒ Automatically detects the lyrics' language
  • ๐Ÿ” Translates non-English lyrics to English using Deep Translator
  • โšก Lightweight, clean CLI output

๐Ÿ› ๏ธ Requirements

  • Python 3.8+
  • Spotify Premium account (required for playback access)
  • Genius API token
  • .env file with your credentials

๐Ÿ“ฆ Setup

  1. Clone this repo
git clone https://github.com/yourusername/cli-lyrics-translator.git
cd cli-lyrics-translator

2. **Install dependencies**
pip install -r requirements.txt

3. **Create a .env file**
SPOTIFY_CLIENT_ID=your_spotify_client_id
SPOTIFY_CLIENT_SECRET=your_spotify_client_secret
SPOTIFY_REDIRECT_URI=http://localhost:8888/callback
GENIUS_ACCESS_TOKEN=your_genius_api_token

4. **Run the script**
python cli_lyrics_google.py

**๐Ÿงช Example Output**
๐ŸŽต Currently Playing: Despacito by Luis Fonsi
๐ŸŒ Detected language: es - Translating to English...

๐ŸŽถ Lyrics:
Slowly
I want to breathe your neck slowly...