This is a simple Python application to play a .mp3 file when a letter key is pressed in the keyboard.
- Download the repository.
- Open a new terminal.
- (OPTIONAL) Create a Python virtual environment with venv or pyenv and activate.
Add audio files (tested on .mp3 files)
- Add the .mp3 files you want to use in
keyboard_sounds/media/soundsfolder. - Open
keyboard_sounds/scripts/config/sounds_list.pyand make sure the audio file name corresponds to the desired letter. You can check the included examples.
Unix base system instructions
- Install dependencies with
pip3 install -r requirements.txt. - Run the application for Unix base operative systems with
sudo python keyboard_sounds/.
Windows instructions
- Install dependencies with
pip3 install -r windows_requirements.txt. - Run the application for Unix base operative systems with
sudo python keyboard_sounds/.
Stop the application
If you need to stop the application, go to the terminal where you executed the application and stop it pressing control + c.