I use a screen reader to use the internet, and I just made a working sound Repl. Or at least, it runs with no errors and I just have the Pygame intro in the terminal.
How does one enable sound in Repl’s? I asked Ghostwriter about it, and it said to enter:
aoss paplay /usr/share/sounds/alsa/Front_Center.wav
in the shell/terminal to test sound, after which it will be enabled. I suspect that was made up.
Might there be a keyboard shortcut for it? I don’t see any accessible button which might give me a hint.
Thanks for the help. Right now, my game appears to run but sounds aren’t being loaded into the pygame mixer correctly, despite the code as far as I’m aware being correct. All I get in the terminal now is the pygame welcome message. But I created a sounds directory with wave files and made the path ‘sounds/sound1.wav’ as an example.
Here’s the link to the Repl. I used Ghostwriter to help with most of it and I understand what the code is doing, and I even fixed the dictionary to load sounds via the pygame mixer, since initially I wasn’t loading the mixer at all which would explain why sounds weren’t playing.
Once I can troubleshoot this the next thing to add is screen reader support which should be a learning process, but Ghostwriter and, failing that, GPT-4, is helping.