Friday, February 24, 2023

How-To make Trunking Recorder Play Audio Faster

If you're running trunking recorder on a system that has lots of calls, you may have an issue where the calls are coming in faster than playback and a backlog of calls piles up and you have to either have to pick and choose what calls you want to hear or get far behind realtime.

I don't like either choice, so I spent a fair bit of time researching how the software works, reading through the javascript files and such and found that if you add a single line to trunkingrecorder.js you can change the default playback speed!

I'm not good enough at coding to modify it so that there's a dropdown menu to change the speed at will, but for my case, I changed the playback speed to 1.5x and find that's the perfect speed to keep up with the system I'm monitoring, Bell Fleetnet Zone 2 in Ottawa.

So how do you do this:

Open TrunkingRecorder.js in a text editor, it's located by default at:

C:\Program Files\Trunking Recorder\Website\js\TrunkingRecorder.js

Go to line 1375, where it says:

1372            audio.addEventListener('timeupdate', AudioTimeUpdated);

1372            audio.addEventListener('ended', PlayerEnded);

1373            audio.addEventListener('pause', PlayerPaused);

1374            audio.addEventListener('play', PlayerPlay);

1375            audio.addEventListener('error', PlayerError);

And add a new line:

1376            audio.defaultPlaybackRate = 1.5;

Where 1.5 is the playback rate you want to use, this could be 1.25, 1.75, 3.20 or whatever playback speed you want.


Save the file and refresh the page and VOILA!! It should now be playing faster!

Hope this helps, leave a comment if it did!

While you're at it, check out my scanner feed at https://www.youtube.com/nathanaelnewton

No comments:

Post a Comment