A basic visual audio player.
Before you run the application, you need to have Python installed on your system. This app has been tested with Python 3.8 and above.
Follow the instructions for your operating system to install Python:
- Download the latest version of Python from the official website.
- Run the installer and make sure to check the box that says "Add Python to PATH" before installation.
- After installation, open Command Prompt and type
python --version
to confirm the installation.
- You can install Python using Homebrew by running
brew install python
in the terminal. - Verify the installation with
python3 --version
.
- Most Linux distributions come with Python pre-installed. You can check the version by running
python3 --version
in the terminal. - If it's not installed, you can usually install it with your package manager, for example
sudo apt-get install python3
on Ubuntu.
After installing Python, you can start the server with the following command:
python -m http.server
SETUP:
Change the audio file in the audioplayer folder to your own MP3 or WAV.
Edit the script.js code to include the path for the new audio file wavesurfer.load('audioplayer/fakemusicartist-therealist.mp3');
Edit the index.html file to have the proper Artist and Track title FAKEMUSICARTIST - THE REALIST
In your CLI you run this code python -m http.server
To open the app on localhost:8000