Bug in audioread with native option R2022b?

3 views (last 30 days)
The audioread command with 'native' option should return the native type of the waveform.
It seems there is a bug in R2022b, where it converts to single
>> y=audioread('example.wav','native');
>> class(y)
ans =
'single'
>> max(y)
ans =
single
0.0663
It works fine on R2022a (returns 'int16' and ADC integer count as max value).
Is it a bug or do I miss a change in the release note?
  2 Comments
Lee
Lee on 13 Oct 2022
I am having similar problem with my mac..
It keeps showing
Error using audioread
Expected input to be a non-missing string scalar or
character vector.
Error in assignment (line 20)
[y,fs] = audioread(fileaudio);
May i know how do you fix it?
Bruno Luong
Bruno Luong on 14 Oct 2022
This is entirely different problem not related to the bug with 'native' option. It seems your fileaudio is non valid string more like a programing issue on your side.

Sign in to comment.

Accepted Answer

Bruno Luong
Bruno Luong on 22 Sep 2022
I has been confirmed by TMW support that is indeed a bug due to third party library they are using.

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!