MATLAB Answers

please help me to translate wavread to audioread

1 view (last 30 days)
david chuang
david chuang on 18 Mar 2020
Commented: david chuang on 19 Mar 2020
how can i use audioread to express [x1, fs, bits]=wavread(location);
thanks

  0 Comments

Sign in to comment.

Answers (1)

Geoff Hayes
Geoff Hayes on 18 Mar 2020
David - from audioread, you could do (assuming that location is the name of (and path to) the audio file
[x1,fs] = audioread(location);
If you need to know the bits per sample, then you can use audioinfo as
info = audioinfo(location);
to get a structure that will have a field corresponding to the bits per sample.

Tags

Products


Release

R2019a