Multilingual Melodies is a web application that connects with Spotify to fetch currently playing track information and display its lyrics. Users can also translate these lyrics into multiple languages using the Lingva Translate API.
- Authorize Spotify: Connect your Spotify account to get track details.
- Fetch Current Track: Retrieve and display the currently playing track.
- Get Lyrics: Show lyrics for the current track.
- Translate Lyrics: Translate lyrics into various languages.
-
Clone the Repository:
git clone https://github.com/yourusername/multilingual-melodies.git cd multilingual-melodies -
Install Dependencies:
Ensure you have Python and Flask installed. Install required packages with:
pip install -r requirements.txt
-
Create a
.envFile:In the root directory, create a
.envfile and add your Spotify credentials:SPOTIFY_CLIENT_ID=your_spotify_client_id SPOTIFY_CLIENT_SECRET=your_spotify_client_secret SPOTIFY_REDIRECT_URI=http://localhost:3000/callback
-
Run the Application:
Start the Flask server:
python server.py
-
Open Your Browser:
Go to
http://localhost:3000to start using the app.
- GET /current-track: Get details of the currently playing track.
- GET /lyrics: Fetch lyrics for a specified artist and track title.
- POST /translate: Translate lyrics to a chosen language.