This Python project leverages the capabilities of a Raspberry Pi to record audio from its microphone, utilize the Spotify API for song recognition, and then displays the album cover art on a connected 64x64 LED screen.
- Raspberry Pi with a connected microphone.
- Spotify Developer Account and API credentials.
- 64x64 LED screen connected to the Raspberry Pi.
- Python 3.11 installed on the Raspberry Pi.
-
Clone the repository to your Raspberry Pi:
git clone https://github.com/NirOnE/Visualizer.git
-
Install dependencies:
pip install -r requirements.txt
-
Obtain Spotify API credentials:
- Create a Spotify Developer Account: Spotify Developer Dashboard
- Create a new application to obtain the
Client IDandClient Secret.
-
Configure the application:
- Replace
YOUR_SPOTIFY_CLIENT_IDandYOUR_SPOTIFY_CLIENT_SECRETwith your actual Spotify API credentials. - Store them in an .env file
- Replace
-
Run the main script:
python visualizer.py
-
The script will record audio, use the Spotify API to recognize the song, and display the album cover art on the LED screen.
- Adjust the audio recording settings for
audio_record.pyinsettings.py. - Modify the LED screen display logic in
led_display.py. - Explore additional features and customization based on your preferences.
Feel free to contribute to this project by submitting issues or pull requests.
This project is licensed under the MIT License.