YouTube Song Recognizer is a Python application that recognizes songs from YouTube videos using the Shazam API. It extracts the audio from a given YouTube video, transcribes the audio using Google Speech Recognition, and then uses the Shazam API to identify the song.
-
Clone the repository:
git clone https://github.com/your_username/your_project.git
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up your RapidAPI key:
- Rename the
.env.example
file to.env
. - Replace
YOUR_RAPIDAPI_KEY
in the.env
file with your actual RapidAPI key.
- Rename the
-
Run the
main.py
script:python main.py
-
Provide the YouTube video ID when prompted.
-
Specify the input and output file paths for the video and audio files.
-
The application will download the video, extract the audio, transcribe it, and then recognize the song using the Shazam API.
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create your feature branch (
git checkout -b feature/YourFeature
). - Commit your changes (
git commit -am 'Add YourFeature'
). - Push to the branch (
git push origin feature/YourFeature
). - Create a new Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.