Seems that you found the solution
I am also using a 3B+. I have not yet connected the sound yet, but I read that pygame works with .ogg and .wav (.mp3 is not mentioned): pygame.mixer — pygame v2.0.1.dev1 documentationI forgot which Raspberry Pi you said you were using. I'm using a 3B+ and found that mp3 audio files play noticeably slower when using Pygame. I switched to Omxplayer for both audio and video and everything is playing as it should.
Omxplayer works great with the mp3 files that someone from here posted on Github. HAL9000/sounds at master · mawob/HAL9000I am also using a 3B+. I have not yet connected the sound yet, but I read that pygame works with .ogg and .wav (.mp3 is not mentioned): pygame.mixer — pygame v2.0.1.dev1 documentation
Here it states explicitly that mp3 support is limited: pygame.mixer.music — pygame v2.0.1.dev1 documentation
That "someone" on github was meOmxplayer works great with the mp3 files that someone from here posted on Github. HAL9000/sounds at master · mawob/HAL9000
It also plays mp4 videos flawlessly. Pygame played the mp3 files without problem on my Windows machine that I used for development, but when used on the Rpi 3B+ the sound was slowed down a bit and sounded draggy. I'm not sure why you would want to use Pygame which has a much higher memory/cpu cost than Omxplayer. Also, the mp3 files on that GitHub link are of great quality and well documented. You would have to convert them to wav files if you can't get them to play properly with Pygame. Just my two cents.
The sound files you posted are fantastic! Many thanks and I'm definitely red-faced at the moment. I'm using OpenShot video editor (on Windows) to combine the screens and audio. If you want to give Omxplayer a try:That "someone" on github was me
Thank you for the compliment regarding the quality. It was quite some effort, to cut, normalize, and fade-in&out all of the 96 files, so it's good to hear that others can use these too.
Of course, I still have the original .wav files, so I can use these to produce .ogg files, if needed - or just use the .wav files in the project.
I am using Pygame to create all the screens for my HAL unit. Therefore, it would be natural also to play the sounds from inside Pygame. If this does not work or if it is not efficient, I could use "subprocess.Popen()" to call an external player.
That's what I did with my GERTY 3000 replica (which is also controlled by a RPi3B+). There, I called "aplay" for sound files (also in .wav format) and omxplayer to play .mp4 video files. But when I built GERTY, I was still new to Python programming, and the overall structure of my code is rather poor (but it works - so, I don't touch it).
I'm planning on a similar panel (not the whole bench) and will be using a recycled 13 inch laptop screen. It will be in portrait mode but I'm editing video so that the screen will appear to be two monitors, one above the other.Someone did it! They built the whole bench from the pod bay room around the HAL console. This is incredible.
It's three years old, but I have not seen it before.
They also show screen captures from therpf.com that they used for the faceplate.
There is just one detail that I can't ignore...
What a huge effort this was. They even got the original Nikkor lens. They added the big speakers on the side of the bench. But then, they got the screen wrong. They have it in portrait mode - instead of just cutting a rectangular opening into the front plate.
So close to perfection