In my project, I need to get sound from a radio stream URL and play it. But it needs to be played in a specific output device called “VB-Cable Input (Virtual Audio Cable)”. I couldn’t find a way to do it. This is my current code: I searched through StackOverflow and the VLC documentation, but couldn’t get the result I
Tag: python-vlc
VLC trigger action when media reaches timestamp
I’d like to the ability to run some code when the timestamp of a file has been reached (i.e. trigger an alert) How can this be achieved? I was looking at this https://www.geeksforgeeks.org/python-vl … edia-time/ However, I feel like I’m really looking for some kind of daemon (i.e. start the media file with VLC and then have this “listener” perform
python-vlc running out of memory after playing multiple songs
I am writing a python program, running on a raspberry pi (PI 3 A+), that plays a song every 10 minutes. I am using python-vlc to play the song through the pi’s headphone jack. PlaySong() is a function that gets called (successfully) every 10 minutes. This works as expected the first 6 times. After 6 times, it doesn’t play anymore,
play as many sounds as loop count in python
I want the alarm.play() function to repeat for the number of loops and ring 10 times as in the example, but it just keeps ringing once every time I try or change it. How can I fix this? And does it make more sense to use for instead of while ? Answer just stop the alarm at the end of