difference between audiowrite output file and audio program output

3 次查看(过去 30 天)
I recorded audio file with MATLAB and saved that file with func audiowrite. However, it caused some problem in my code.
So, I read the output of audiowrite file with program (Audacity, Adobe Audition) and saved it in that program.
Then I re-read the file in MATLAB, and it did not cause any problem in my code.
It means that there were some difference between audiowrite output and the file saved in audio program with audiowrite output.
I compared two files
  1. audiowrite output
  2. audiowrite output -> read in audio program -> save
I subtracted one from the other.
Among 64000 samples, some values were 3.0518e-05 (difference)
Is there anyone who knows why it happens? and how to solve this?

回答(1 个)

Walter Roberson
Walter Roberson 2016-1-21
编辑:Walter Roberson 2016-1-21
The difference you are seeing, 3.0518e-5, is 1/32768. I am not immediately sure why you are not instead getting a difference on the order of 1/65536; it could depend on how you created your data.

类别

Help CenterFile Exchange 中查找有关 Audio Plugin Creation and Hosting 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by