Page 1 of 1

Sample sizes don't match encoding

Posted: Wed Aug 02, 2006 11:09 am
by jdee
I'm using a demo account to evaluate the plum platform but I'm not having any joy with getting wav files to play. I'm convinced my files are in the correct format 8x8, but they just will not play!

Does anyone have any idea as to what the problem may be?

This is the error in the log...

File: http://voice.mydomain.co.uk/wav/xxx.wav Sample sizes don't match encoding
Unrecognized format in pvxPromptConvertCopySource
Failure during pvxPromptConvertCopySource

Send "Private Message" to IVR support user account

Posted: Wed Aug 02, 2006 12:53 pm
by support
Hello,

Could you be more specific about the file format you are attempting to play? All supported wav formats must be encoded at 8KHz, we support the following 8-bit formats: u-law, a-law and the following 16-bit format: linear pcm. What are you using to record/reencode the audio files? There are specific tools on Windows (for example) that do not properly create the wav header.

Could you please provide a sample audio file for download? If you are not comfortable sending the link in this public forum you can send a "Private Message" to the IVR support user account with the link. Without the audio file it is difficult to diagnose what is wrong.

Regards,
Plum Support

Posted: Wed Aug 02, 2006 3:14 pm
by jdee
Hi There,

Please check your pm box

Thanks very much

converted user's format to one supported by IVR platform

Posted: Wed Aug 02, 2006 3:44 pm
by support
Hello,

We received your private message and were able to look at the audio files. It appears as if you have setup the encoding format as 8KHz 8bit linear pcm, this is not a supported format for our IVR system. Your best bet is to convert these files to 8KHz 8bit u-law.

We recommend the command line tool "sox" (http://sox.sourceforge.net) to convert between simple file formats. Using that tool we were able to convert the file you sent to a format supported by our IVR platform.

Example to convert to 8khz 8bit u-law:

Code: Select all

sox.exe input.wav -r 8000 -U -b ulaw_output.wav

Regards,
Plum Support

Posted: Thu Aug 03, 2006 2:48 am
by jdee
Thank you very much for your assistance. I will try out sox and report back how I progress.

Again, thanks very much.

Posted: Thu Aug 03, 2006 4:13 am
by jdee
Works great after converting.

thanks

Re: Sample sizes don't match encoding

Posted: Mon Oct 22, 2018 11:55 am
by AjayExpresso
I have a similar issue with one of my wav files, and the Plum log shows this error:

File: http://bccf7033.ngrok.io/IVR/BadFile.wav Sample sizes don't match encoding

However soxi output looks fine:

Input File : 'BadFile.wav'
Channels : 1
Sample Rate : 8000
Precision : 14-bit
Duration : 00:00:03.01 = 24071 samples ~ 225.666 CDDA sectors
File Size : 24.1k
Bit Rate : 64.2k
Sample Encoding: 8-bit u-law

Re: Sample sizes don't match encoding

Posted: Tue Oct 23, 2018 12:11 pm
by support
Hello,

We ran some analysis on your audio file, and it seems as though the issue is with your block align value. It is showing up as a value of 8 when it should be a value of 1. We recommend re-encoding your audio file using sox to fix this issue. Let us know if you have any issues.

Regards,
Plum Support