Sample sizes don't match encoding

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

  • Author
  • Message
Offline

jdee

  • Posts: 13
  • Joined: Fri Jul 14, 2006 5:47 am

Sample sizes don't match encoding

PostWed Aug 02, 2006 11:09 am

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
Offline

support

  • Posts: 3628
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Send "Private Message" to IVR support user account

PostWed Aug 02, 2006 12:53 pm

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
Last edited by support on Mon Jan 04, 2010 4:12 pm, edited 1 time in total.
Offline

jdee

  • Posts: 13
  • Joined: Fri Jul 14, 2006 5:47 am

PostWed Aug 02, 2006 3:14 pm

Hi There,

Please check your pm box

Thanks very much
Offline

support

  • Posts: 3628
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

converted user's format to one supported by IVR platform

PostWed Aug 02, 2006 3:44 pm

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
Last edited by support on Sat Feb 20, 2010 5:00 pm, edited 2 times in total.
Offline

jdee

  • Posts: 13
  • Joined: Fri Jul 14, 2006 5:47 am

PostThu Aug 03, 2006 2:48 am

Thank you very much for your assistance. I will try out sox and report back how I progress.

Again, thanks very much.
Offline

jdee

  • Posts: 13
  • Joined: Fri Jul 14, 2006 5:47 am

PostThu Aug 03, 2006 4:13 am

Works great after converting.

thanks
Offline

AjayExpresso

  • Posts: 3
  • Joined: Mon Oct 22, 2018 11:51 am

Re: Sample sizes don't match encoding

PostMon Oct 22, 2018 11:55 am

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
Offline

support

  • Posts: 3628
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: Sample sizes don't match encoding

PostTue Oct 23, 2018 12:11 pm

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

Return to Plum DEV Q&A

Who is online

Users browsing this forum: No registered users and 1 guest

cron