https://github.com/jehna/webcam-song
https://github.com/jehna/webcam-song
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jehna/webcam-song
- Owner: jehna
- License: mit
- Created: 2024-06-01T21:06:20.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-06-01T21:34:14.000Z (11 months ago)
- Last Synced: 2025-01-10T02:22:33.627Z (4 months ago)
- Language: Python
- Size: 502 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Webcam → Song
> Use your mood to control the musicThis project uses your webcam to take an image, then asks AI what the perfect
song for your mood is. It then plays that song from Spotify.## Getting started
First you need to install the required dependencies:
```shell
# Create a virtual environment
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
```Then you need to set up the environment variables:
```shell
cp .env-example .env
```To use this app you need to set up a Spotify app and an OpenAI API key and save
the required values to `.env`file.Then you can run the project:
```shell
python -m webcam_song
```The first time you run the project, you need to authenticate with Spotify.
## Contributing
This was intended to be a super simple solo project. If you'd like to extend on
the work, pull requests are warmly welcome! Please fork the repository and use a
feature branch.## Licensing
The code in this project is licensed under MIT license.