Issue
The audio system for keystroke feedback in videos produced the same sound for all characters, making it impossible to distinguish between different keys pressed during video rendering. Users reported hearing only one repeating sound (e.g., the āsā sound) regardless of the actual keystroke.
Culprit
The system incorrectly mapped sound files to characters by extracting only the first character of each filename, causing collisions and incorrect associations. For example, both space.wav and s.wav were mapped to the āsā character, leading to only 26 unique sounds instead of the intended 51.
Solution
An explicit character-to-sound mapping dictionary was introduced to ensure each character had a unique sound file. The logic was updated to load sounds based on predefined mappings rather than parsing filenames, resolving collisions and enabling proper support for all 51 keystroke sounds, including special characters.