please help me to translate wavread to audioread

2 ビュー (過去 30 日間)
david chuang
david chuang 2020 年 3 月 18 日
コメント済み: david chuang 2020 年 3 月 19 日
how can i use audioread to express [x1, fs, bits]=wavread(location);
thanks

回答 (1 件)

Geoff Hayes
Geoff Hayes 2020 年 3 月 18 日
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.
  1 件のコメント
david chuang
david chuang 2020 年 3 月 19 日
it works!!! thank you very much

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

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by