How to receive “icecast” internet radio stream for immediate playback with Python?
问题 I'm wanting to take an internet audio/radio stream (specifically Longplayer, click for direct stream URL) and play it with python. It's preferable that it's backgrounded, such that the script able to continue running its main loop. (e.g. as game background music or something, though Pyglet, PyGame et al. may provide their own tools for that.) I've seen some likely out of date examples of recording internet radio using requests and dumping it into a file but this isn't exactly what I want and