Cannot read PCM file formats with more than 32 bits per sample.

10 ビュー (過去 30 日間)
marina
marina 2012 年 5 月 13 日
What does this error means?
Cannot read PCM file formats with more than 32 bits per sample.

回答 (2 件)

Daniel Shub
Daniel Shub 2012 年 5 月 13 日
I am assuming this comes from trying to use the WAVREAD function. I think the error is pretty straight forward. The PCM file (aka WAV file) has a resolution of greater than 32 bits per samples and MATLAB doesn't know what to do with it.
If you want a suggestion of how to deal with the error, you need to provide more information. Ideally you should edit your question to include
  1. how you created the file
  2. how you read the file
  3. what you are doing with the file once loaded
  3 件のコメント
Daniel Shub
Daniel Shub 2012 年 5 月 13 日
Note that WAVRECORD is depreciated and you shouldn't use it.
Daniel Shub
Daniel Shub 2012 年 5 月 13 日
The error most likely comes from
d2=wavread(filename);
It seems like the variable "filename" will be something like word1m1.wav
How did you create these WAV files? Presumably, the format of these WAV files is greater than 32 bits per sample.

サインインしてコメントする。


marina
marina 2012 年 5 月 13 日
hello
I am doing a Matlab project in speech recognition. I have 5 sample files of each word (12 words) that I record, 15kb each approximately. And then I record the word I want to recognize. All of them have bit-rate: 128kbps.
When i enter only 3 words it works perfectly. when i enter all of the 12 words it gives me error "Cannot read PCM file formats with more than 32 bits per sample."
Why is that??
Thank u
  2 件のコメント
Walter Roberson
Walter Roberson 2012 年 5 月 13 日
Try changing the order you enter the words in. Does it always happen after 3 words, or does it happen with particular files?
Try using wavinfo() to look at the information about the files.
Generally speaking when I see random errors like that cropping up, I look to be sure that all of the commands for reading the files are correct; random strange errors can show up if a string is used in a place that MATLAB is expecting a numeric array.
Daniel Shub
Daniel Shub 2012 年 5 月 13 日
This is not an answer, but either a comment to my previous answer or additional information for the question. Please put it in the appropriate place (use the edit "button" to edit your question, or the "comment on this answer" link to add a comment. This information says nothing about the three questions I asked.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSpeech Recognition についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by