James Hankins
2009-Sep-17 13:49 UTC
[asterisk-users] Voice Playback cutting first word or so of audio file
When I call inbound with a cell phone (via SIP PSTN trunk) some of my prompts the first word is cut off. I'm assuming the prompt is needing to be transcoded on the fly and it's not getting transcoded fast enough. I did a file convert to create gsm versions (currently they are referenced in my dial plan with no extension Seem to have same problem. How do I determine which file it's playing, for one and what is the likely cause of my issue? Note: If I call from a landline, this problem doesn't exist. I'm assuming there is some way to determine if resources are being expended to transcode. ox: WAV Chunk fmt sox: WAV Chunk data sox: Reading Wave file: Microsoft PCM format, 1 channel, 8000 samp/sec sox: 16000 byte/sec, 2 block align, 16 bits/samp, 146966 data bytes sox: 73483 Samps/chans sox: Input file mysoundfile.wav: using sample rate 8000 size shorts, encoding signed (2's complement), 1 channel Samples read: 73482 Length (seconds): 9.185250 Scaled by: 2147483647.0 Maximum amplitude: 0.980347 Minimum amplitude: -0.980347 Midline amplitude: 0.000000 Mean norm: 0.190652 Mean amplitude: -0.004612 RMS amplitude: 0.294026 Maximum delta: 1.554443 Minimum delta: 0.000000 Mean delta: 0.096981 RMS delta: 0.163688 Rough frequency: 708 Volume adjustment: 1.020 sox: Detected file format type: gsm sox: Input file mysoundfile.gsm: using sample rate 8000 size bytes, encoding gsm, 1 channel Samples read: 73440 Length (seconds): 9.180000 Scaled by: 2147483647.0 Maximum amplitude: 0.999756 Minimum amplitude: -1.000000 Midline amplitude: -0.000122 Mean norm: 0.179742 Mean amplitude: 0.000149 RMS amplitude: 0.277143 Maximum delta: 1.305664 Minimum delta: 0.000000 Mean delta: 0.084535 RMS delta: 0.140480 Rough frequency: 645 Volume adjustment: 1.000
Doug Lytle
2009-Sep-17 13:56 UTC
[asterisk-users] Voice Playback cutting first word or so of audio file
James Hankins wrote:> When I call inbound with a cell phone (via SIP PSTN trunk) some of my > prompts the first word is cut off. I'm assuming the prompt is needing >You need to add a Wait(1) after the Answer() Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
Ira
2009-Sep-17 16:31 UTC
[asterisk-users] Voice Playback cutting first word or so of audio file
At 06:49 AM 9/17/2009, you wrote:>When I call inbound with a cell phone (via SIP PSTN trunk) some of my >prompts the first word is cut off. I'm assuming the prompt is needing >to be transcoded on the fly and it's not getting transcoded fast >enough. I did a file convert to create gsm versions (currently they >are referenced in my dial plan with no extensionI've always added a wait(1) as the first line in those plans with the problem and it goes away. I think it's that the prompt starts before the call is finished being set up. Actually, it might fix it but I did that for a completely different reason having to do with caller ID on a PSTN line. Ira