This project captures audio input from the microphone on-demand (when the "R" key is pressed) and uses the SongRec library to recognize the song via the Shazam API.
- Windows XP or later
- Python 3.4.3 x86
Download Python 3.4.3 x86 from the official Python website's archive:
Python 3.4.3 x86 Download Link
Run the installer and follow the on-screen instructions. Ensure you select the option to add Python to your system's PATH.
To install pip
for Python 3.4 system-wide from the command line, follow these steps:
- Download
get-pip.py
:
curl https://bootstrap.pypa.io/pip/3.4/get-pip.py -o get-pip.py
- Run the
get-pip.py
script:
python get-pip.py
This will install pip
for Python 3.4 system-wide.
Navigate to the project directory and run:
pip install -r requirements.txt
This will install all the necessary libraries for the project.
To run the Flask server:
python server.py
Once the server is running, press the "R" key to capture audio from the microphone and recognize the song using the Shazam API. The recognized song details will be printed to the console.
Certainly! Here's the additional section to add to the README.md
file for downloading and installing curl
on Windows XP:
To download and use curl
on Windows XP, follow these steps:
-
Download the curl executable for Windows:
You can download a version of
curl
that's compatible with Windows XP from the curl for Windows download page. Look for the version that matches your system (32-bit or 64-bit) and is labeled as having SSL support. -
Install curl:
- Once downloaded, extract the ZIP file to a directory, e.g.,
C:\curl
. - Add the directory to your system's PATH:
- Right-click on 'My Computer' and select 'Properties'.
- Navigate to the 'Advanced' tab.
- Click on 'Environment Variables'.
- In the 'System Variables' section, find the 'Path' variable, select it, and click 'Edit'.
- At the end of the 'Variable value' field, add
;C:\curl
(assuming you extractedcurl
toC:\curl
). - Click 'OK' to close each window.
- Once downloaded, extract the ZIP file to a directory, e.g.,
-
Verify the Installation:
Open a new command prompt and type:
curl --version
This should display the version of
curl
you installed, indicating that the installation was successful.