Soundboard audios have one second of silence at beginning

All installation and configuration problems and questions

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

Soundboard audios have one second of silence at beginning

Postby vapiano » Sun Aug 27, 2023 4:50 pm

ViciBox v.10.0.2
VERSION: 2.14-679c
BUILD: 230220-1802
Asterisk 13.38.3-vici
Cloud VPS, CPU 6 cores, 16GB RAM, Disk 200 GB NVMe

Hi,

with the help of Strikers tutorial on youtube https://www.youtube.com/watch?v=2lcL6ZPU4EE
I was able to create a soundboard and everything works so far.

I only have one problem. When pushing an audio button, the audio is played immediately but the first second is always a silence.
The audio length for each uploaded audio is always one second longer than the original audio file. My reference is the counter which appears after an audio button is pressed.
The original audio files do not have this silence of one second at the beginning.

Is this normal? If not, how can I fix this?
vapiano
 
Posts: 35
Joined: Tue Jun 21, 2022 2:17 pm

Re: Soundboard audios have one second of silence at beginnin

Postby kashyapking » Tue Aug 29, 2023 1:58 pm

Normally it will play instantly, but we need to make sure if there is lagging issue with network or phone connections with server.
if you can share your playback log with asterisk so I can check if there is any other process running before it which is generating this delay.
please share asterisk log for this playback if possible.
Vicibox10 | Version: 2.14b0.5 | SVN Version: 3743 | DB Schema Version: 1690 | Asterisk Version: 13.38.2-vici
visit us @ https://www.kingasterisk.com | skype: kingasterisk | wa @ +17864142610
kashyapking
 
Posts: 22
Joined: Fri Aug 18, 2023 11:32 am

Re: Soundboard audios have one second of silence at beginnin

Postby vapiano » Wed Aug 30, 2023 12:19 pm

dobble post, please delete
Last edited by vapiano on Wed Aug 30, 2023 12:20 pm, edited 1 time in total.
vapiano
 
Posts: 35
Joined: Tue Jun 21, 2022 2:17 pm

Re: Soundboard audios have one second of silence at beginnin

Postby vapiano » Wed Aug 30, 2023 12:19 pm

kashyapking wrote:Normally it will play instantly, but we need to make sure if there is lagging issue with network or phone connections with server.
if you can share your playback log with asterisk so I can check if there is any other process running before it which is generating this delay.
please share asterisk log for this playback if possible.


Thank you for the response. Here the cli when pressing an audio button:

Code: Select all
[Aug 30 19:13:06]     -- Called 473782168600051@default
[Aug 30 19:13:06]     -- Executing [473782168600051@default:1] Dial("Local/473782168600051@default-000000b3;2", "IAX2/ASTplay:sr343EDnQjEYpodEukLJ@127.0.0.1:42569/473782178600051,5,To") in new stack
[Aug 30 19:13:06]     -- Called IAX2/ASTplay:sr343EDnQjEYpodEukLJ@127.0.0.1:42569/473782178600051
[Aug 30 19:13:06]     -- Accepting AUTHENTICATED call from 127.0.0.1:53409:
[Aug 30 19:13:06]     --        > requested format = ulaw,
[Aug 30 19:13:06]     --        > requested prefs = (ulaw|gsm),
[Aug 30 19:13:06]     --        > actual format = ulaw,
[Aug 30 19:13:06]     --        > host prefs = (ulaw),
[Aug 30 19:13:06]     --        > priority = mine
[Aug 30 19:13:06]     -- Call accepted by 127.0.0.1:42569 (format ulaw)
[Aug 30 19:13:06]     -- Format for call is (ulaw)
[Aug 30 19:13:06]     -- Executing [473782178600051@default:1] MeetMe("IAX2/ASTplay-6343", "8600051,q") in new stack
[Aug 30 19:13:06]   == Manager 'randomsendcron' logged on from 127.0.0.1
[Aug 30 19:13:06]   == Manager 'randomsendcron' logged off from 127.0.0.1
[Aug 30 19:13:06]     -- IAX2/127.0.0.1:42569-4860 answered Local/473782168600051@default-000000b3;2
[Aug 30 19:13:06]     -- Local/473782168600051@default-000000b3;1 answered
[Aug 30 19:13:06]     -- Executing [473782158521111@default:1] Answer("Local/473782168600051@default-000000b3;1", "") in new stack
[Aug 30 19:13:06]     -- Executing [473782158521111@default:2] ControlPlayback("Local/473782168600051@default-000000b3;1", "a1introfast_pcm_8000_16,99999,0,1,2,3,4") in new stack
[Aug 30 19:13:06]     -- Channel IAX2/127.0.0.1:42569-4860 joined 'simple_bridge' basic-bridge <268b9abe-619b-4dcc-a226-0c926f7da12f>
[Aug 30 19:13:06]     -- <Local/473782168600051@default-000000b3;1> Playing 'a1introfast_pcm_8000_16.slin' (language 'en')
[Aug 30 19:13:06]     -- Channel Local/473782168600051@default-000000b3;2 joined 'simple_bridge' basic-bridge <268b9abe-619b-4dcc-a226-0c926f7da12f>
[Aug 30 19:13:07]   == Manager 'randomsendcron' logged off from 127.0.0.1
[Aug 30 19:13:08]     -- Executing [473782158521111@default:3] Hangup("Local/473782168600051@default-000000b3;1", "") in new stack
[Aug 30 19:13:08]   == Spawn extension (default, 473782158521111, 3) exited non-zero on 'Local/473782168600051@default-000000b3;1'
[Aug 30 19:13:08] WARNING[29222][C-000001b9]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel
[Aug 30 19:13:08]     -- Executing [h@default:1] AGI("Local/473782168600051@default-000000b3;1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16--------------------)") in new stack
[Aug 30 19:13:08]     -- <Local/473782168600051@default-000000b3;1>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16--------------------) completed, returning 0
[Aug 30 19:13:08]     -- Channel Local/473782168600051@default-000000b3;2 left 'simple_bridge' basic-bridge <268b9abe-619b-4dcc-a226-0c926f7da12f>
[Aug 30 19:13:08]   == Spawn extension (default, 473782168600051, 1) exited non-zero on 'Local/473782168600051@default-000000b3;2'
[Aug 30 19:13:08] WARNING[29223][C-000001b7]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel
[Aug 30 19:13:08]     -- Channel IAX2/127.0.0.1:42569-4860 left 'simple_bridge' basic-bridge <268b9abe-619b-4dcc-a226-0c926f7da12f>
[Aug 30 19:13:08]     -- Executing [h@default:1] AGI("Local/473782168600051@default-000000b3;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----2-----2-----)") in new stack
[Aug 30 19:13:08]     -- Hungup 'IAX2/127.0.0.1:42569-4860'
[Aug 30 19:13:08]   == Spawn extension (default, 473782178600051, 1) exited non-zero on 'IAX2/ASTplay-6343'
[Aug 30 19:13:08]     -- Executing [h@default:1] AGI("IAX2/ASTplay-6343", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16--------------------IAX2 HANGUP (16))") in new stack
[Aug 30 19:13:08]     -- <IAX2/ASTplay-6343>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16--------------------IAX2 HANGUP (16)) completed, returning 0
[Aug 30 19:13:08]     -- Hungup 'IAX2/ASTplay-6343'
[Aug 30 19:13:08]     -- <Local/473782168600051@default-000000b3;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----2-----2-----) completed, returning 0



Hope this helps.
vapiano
 
Posts: 35
Joined: Tue Jun 21, 2022 2:17 pm

Re: Soundboard audios have one second of silence at beginnin

Postby kashyapking » Thu Aug 31, 2023 6:58 am

Hello, From logs it looks proper processing for the audio file, so might be delay due to lagging of network, are you using same network where this server is located or server is on remote location?
Vicibox10 | Version: 2.14b0.5 | SVN Version: 3743 | DB Schema Version: 1690 | Asterisk Version: 13.38.2-vici
visit us @ https://www.kingasterisk.com | skype: kingasterisk | wa @ +17864142610
kashyapking
 
Posts: 22
Joined: Fri Aug 18, 2023 11:32 am

Re: Soundboard audios have one second of silence at beginnin

Postby vapiano » Thu Aug 31, 2023 7:49 am

kashyapking wrote:Hello, From logs it looks proper processing for the audio file, so might be delay due to lagging of network, are you using same network where this server is located or server is on remote location?


I am using the same network where server is located.
vapiano
 
Posts: 35
Joined: Tue Jun 21, 2022 2:17 pm

Re: Soundboard audios have one second of silence at beginnin

Postby martinch » Sun Sep 03, 2023 2:12 pm

Oh hey,

Log looks normal and clean. Few things from my end;

  • Can you try capturing a call recording and verifying the delay exists there too.
  • Is there a delay in the agent hearing the sound or the caller?
  • I know you said you trimmed the audio...might be worth checking again. Check the waveform in Audacity.

That's all I had for now :) cheers, Martin.
Project Lead @ mDial -> https://github.com/TheBlode/mDial
martinch
 
Posts: 273
Joined: Thu Nov 15, 2018 9:14 am
Location: England, UK

Re: Soundboard audios have one second of silence at beginnin

Postby vapiano » Mon Sep 04, 2023 2:36 pm

Hi :)

martinch wrote:Can you try capturing a call recording and verifying the delay exists there too.

Yes, delay is also in recording.

Is there a delay in the agent hearing the sound or the caller?

Both

Check the waveform in Audacity

Checked, it is .wav 8000 khz, 16 bit mono.


When I press the audio button on my avatar, a counter starts counting down the length of the audio. But the length is always one second longer than the original file. This one second is the "silence second" at the beginning.
vapiano
 
Posts: 35
Joined: Tue Jun 21, 2022 2:17 pm


Return to Support

Who is online

Users browsing this forum: sofianemh and 107 guests