Why the audioread function is giving data samples in two coloum?

21 ビュー (過去 30 日間)
krishna Chauhan
krishna Chauhan 2022 年 1 月 16 日
コメント済み: Walter Roberson 2022 年 1 月 19 日

Hi there I am using the code below to read sata samples in my audio dataset. Usually the size of data is (number of data samples in audio file X 1) but here I am getting (number of data samples in audio file X 2), can any one explain please?

[data,fs]=audioread('F_01_02_05.wav');
fs=44100;

Here data=112128X2 double ??

採用された回答

Walter Roberson
Walter Roberson 2022 年 1 月 16 日
That indicates that the audio has two channels (stereo)
  7 件のコメント
krishna Chauhan
krishna Chauhan 2022 年 1 月 18 日
very ckear explanation sir, and yes m working in speech. Done this in python but for a specific model i need to run this on matlab. We have created this dataset on our ow, but all available datasets are single channel. As I said in python I did not face this problem it is tackled by python directly.
now as you said i need to observe the channel output first.
Walter Roberson
Walter Roberson 2022 年 1 月 19 日
Sorry, I have no information about how audio files are read on python, or about how python treats processing multiple channels.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMeasurements and Spatial Audio についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by