KeyboardSoundPlayer is a program that allows you to link an audio file to any key on your keyboard. It supports audio input from YouTube links, MP3 files, or generated from text. Additionally, functions can be bound to keys for enhanced interactivity.
This section documents the configuration options available in the config window.
Option | Type | Default | Description |
---|---|---|---|
Channels | integer | 8 | Number of sounds that can be played at once |
Gender | text | male | The gender of the voice used for autogenerated MP3 files |
Rate | integer | 170 | The speed of the voice used for autogenerated MP3 files |
Exit Key | text | esc | Press this key 5 times in 2 seconds to close the program |
Port | integer | 6238 | Port for GUI and sound player communication (change only if needed) |
In the main window, there are three buttons for binding sounds to keys:
See below for how to map a function to a key.
Functions can be bound to specific keys. Available functions include:
reset(): Clear all of the audio channels
toggle(): Toggle the sound player (disables all commands if toggled off)
pause(): Pause all sounds
unpause(): Unpause all sounds
To enable microphone output you need to download 2 external programs, VB-Audio Cable and Voicemeeter. Both programs are free and well trusted. Once you run the installers for both programs you will need to do the following steps:
To play a sound when any key is pressed, name the key "all"
in keys.json
or provide an all.mp3
file.
The GUI does not need to stay open for the sound player to function.
The player can be shut off using the GUI or by pressing Esc 5 times quickly.