English | 繁體中文
A program make you custom your own keyboard sound.
You can get this tool on itch.io now
There are two method(scripts) to make custom keyboard sound.
- using
Pygame
- using
keyboard
andplaysounds
- press 'esc' to stop
- please put mp3 into the sound folder
- playsound module has bug:
- please enter the module file and edit
py command = ' '.join(command).encode('utf-16')
intopy command = ' '.join(command)
since python3 is encode with utf-8
- please enter the module file and edit
- Add custom mode
- it will load
setting.txt
to the program.- the setting can be contain with key custom sound and mode setting
- setting mode with this format
$\rightarrow$ mode=custom
ormode=random
- custom can be use for edit key and random is for random play sound in sound folder
- setting key with this format
$\rightarrow$ key:sample.mp3
the key need to be lower case.- it will only play sound when you press the key in the setting in custom mode
- setting mode with this format
- the setting can be contain with key custom sound and mode setting
- I also edit the
playsound.py
start from line60:
try:
exceptionMessage = ('\n Error ' + str(errorCode) + ' for command:'
'\n ' + command.decode('utf-16') +
'\n ' + errorBuffer.raw.decode('utf-16').rstrip('\0'))
logger.error(exceptionMessage)
raise PlaysoundException(exceptionMessage)
except:
pass
- This will fixed thread error. Some string and byte decode error.