Change Speed for call recording playback x3?

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Change Speed for call recording playback x3?

Postby atkins513 » Fri Feb 23, 2024 3:07 pm

My question is pretty simple. I listen to all calls at 2x, but am capable of listening much faster. I watch some YouTube videos in 3x and 4x. I have custom scripts for youtube that allow me to go over the default selectable speeds.

My question, Is there a way to increase the playback speed even more than 2x, either by inspecting the element and changing, or some other trick to doing so?
Thanks










VERSION: 2.14-634c BUILD: 210421-2110
atkins513
 
Posts: 56
Joined: Fri Jul 03, 2020 12:31 pm

Re: Change Speed for call recording playback x3?

Postby njr » Thu Feb 29, 2024 11:39 am

The quick and dirty way, assuming you want this for all recordings on a page, is to open up the browser's dev tools (inspect an element or hit F12) and in the Console section paste this and hit enter:
Code: Select all
document.querySelectorAll('audio').forEach(function(audio) {
    audio.playbackRate = 3;
});

You could try 4 but it may actually mute the audio (it doesn't in Chrome, per my testing just now, but the MDN web docs note that Gecko (Firefox browser engine) would. It does accept a decimal point as well, so, 3.5 for example should work.
Vicibox 11 from .iso installed/set up by Vicidial | Vicidial 2.14-900a Build: 231115-1636 | Asterisk 16.30.0-vici | 10-server cluster (1 primary DB, 1 primary web, 8 asterisk) in Colo DC | OpenSIPS on web as LB | 10x Dell R740XD
njr
 
Posts: 22
Joined: Fri Dec 08, 2023 1:41 pm

Re: Change Speed for call recording playback x3?

Postby atkins513 » Fri Mar 01, 2024 12:34 pm

Amazing. Worked perfectly! Thank you so much!

As an additional option to this solution, I created a bookmark using the following code as the "website". All I have to do is to click this book mark while after clicking play to immediately apply the speed.
Thanks again

javascript:document.querySelectorAll('audio').forEach(function(audio) { audio.playbackRate = 3;});
atkins513
 
Posts: 56
Joined: Fri Jul 03, 2020 12:31 pm

Re: Change Speed for call recording playback x3?

Postby williamconley » Thu Dec 05, 2024 12:04 am

Excellent postback. You might consider asking The Vicidial Group to implement more speed options. Try a request directly to them.

You can alter the code directly on the server, of course, and it'll last until the next time you upgrade. But if your solution is one line of code, you might have a good shot at getting it included in the base for everyone.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20415
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Change Speed for call recording playback x3?

Postby carpenox » Thu Dec 05, 2024 4:24 am

oh cool, learn something new everyday
Alma Linux 9.5 | SVN Version: 3920 | DB Schema Version: 1725 | Asterisk 18.26.0 | PHP8
https://dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
DC: https://discord.gg/DVktk6smbh -:- TG: https://t.me/+wkDmkF9U4aUxOGYx
carpenox
 
Posts: 2584
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 67 guests