Pira.cz Technical Forum
Utilities => Silence Detector => Topic started by: rogerB on September 12, 2021, 10:27:37 pm
-
I'm trying to use Pira to detect loss of an internet radio stream I am recording (logging) on the same PC.
I want to detect when it goes silent, usually caused by a disconnection of the audio webstream (e.g. wifi or incoming internet stopping).
The webstream URL will play in any browser or a player such as VLC or MPlayer, so ideally when Pira detects loss of audio, it relaunches the webstream. However, when VLC or MPlayer (or a browser) goes silent, Pira need to close and relaunch the browser/player and go straight to the webstream address. Any ideas how I can get it to do this?
Thanks
-
Ah. Worked it out.
Used a dedicated browser with home page set to the webstream
Pira set to kill the browser then restart it on silence.
Simples!
-
Hi Roger,
I'm trying to do something similar to you, I think. I'm playing an audio stream through Foobar2000. On silence, I would like it to click the "play" button again. I prefer the Foobar2000 media player but I could also use VLC.
Thanks for any tips you can provide!
Allen
-
Here's how you can do it... Download AutoHotKey.exe and install it. VLC is controllable by hotkeys. Write a short script that will send Ctrl+1 to the VLC player. Assuming you have the desired file as the most recent one played, the VLC player will automatically load and launch that file or stream. I just tested it, and it loaded and played my stream. If you need help, I can email you the little executable that will do this. I put the script executable on my desktop, and created a shortcut to it. I copy and paste that shortcut into the Silence Detector Open/Play1 field on the Alarm Task window.