{"id":20651922,"url":"https://github.com/jingshing-python/python-keyboard-sound","last_synced_at":"2026-04-21T19:32:37.912Z","repository":{"id":65010375,"uuid":"580693363","full_name":"JingShing-Python/Python-KeyBoard-Sound","owner":"JingShing-Python","description":"A program make you custom your own keyboard sound.","archived":false,"fork":false,"pushed_at":"2022-12-23T04:25:01.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-09T20:59:50.144Z","etag":null,"topics":["keyboard","keyboard-events","keyboards"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JingShing-Python.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-21T07:53:07.000Z","updated_at":"2023-08-30T18:24:33.000Z","dependencies_parsed_at":"2023-01-13T15:13:37.047Z","dependency_job_id":null,"html_url":"https://github.com/JingShing-Python/Python-KeyBoard-Sound","commit_stats":null,"previous_names":["jingshing-python/python-keyboard-sound"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingShing-Python%2FPython-KeyBoard-Sound","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingShing-Python%2FPython-KeyBoard-Sound/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingShing-Python%2FPython-KeyBoard-Sound/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingShing-Python%2FPython-KeyBoard-Sound/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JingShing-Python","download_url":"https://codeload.github.com/JingShing-Python/Python-KeyBoard-Sound/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242750785,"owners_count":20179257,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["keyboard","keyboard-events","keyboards"],"created_at":"2024-11-16T17:30:45.770Z","updated_at":"2025-12-05T02:09:05.119Z","avatar_url":"https://github.com/JingShing-Python.png","language":"Python","readme":"English | [繁體中文](README_TCH.md)\n# Python-KeyBoard-Sound\nA program make you custom your own keyboard sound.\n\n## You can get this tool on [itch.io](https://jingshing.itch.io/keyboard-sound-player) now\n\n## Require modules\nThere are two method(scripts) to make custom keyboard sound.\n\n1. using ```Pygame```\n2. using ```keyboard``` and ```playsounds```\n\n## Ver 1.0:\n* press 'esc' to stop\n* please put mp3 into the sound folder\n\n## Ver 1.1:\n* playsound module has bug:\n  * please enter the module file and edit ```py command = ' '.join(command).encode('utf-16')``` into ```py command = ' '.join(command)``` since python3 is encode with utf-8\n\n## Ver 1.2:\n* Add custom mode\n* it will load ```setting.txt``` to the program.\n  * the setting can be contain with key custom sound and mode setting\n    * setting mode with this format $\\rightarrow$ ```mode=custom``` or ```mode=random```\n      * custom can be use for edit key and random is for random play sound in sound folder\n    * setting key with this format $\\rightarrow$ ```key:sample.mp3``` the key need to be lower case.\n      * it will only play sound when you press the key in the setting in custom mode\n\n## Ver 1.2.1\n* I also edit the ```playsound.py``` start from line60:\n```py\ntry:\n     exceptionMessage = ('\\n    Error ' + str(errorCode) + ' for command:'\n                         '\\n        ' + command.decode('utf-16') +\n                         '\\n    ' + errorBuffer.raw.decode('utf-16').rstrip('\\0'))\n     logger.error(exceptionMessage)\n     raise PlaysoundException(exceptionMessage)\n except:\n     pass\n```\n* This will fixed thread error. Some string and byte decode error.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjingshing-python%2Fpython-keyboard-sound","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjingshing-python%2Fpython-keyboard-sound","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjingshing-python%2Fpython-keyboard-sound/lists"}