what is channel in audioread

2 ビュー (過去 30 日間)
Tae-Gyeong Sung
Tae-Gyeong Sung 2020 年 8 月 31 日
回答済み: Abhiram 2025 年 4 月 25 日
I read the wav file and there are 2 NumChannels.
What are these two each? Is the first real number and the second imag number?

回答 (1 件)

Abhiram
Abhiram 2025 年 4 月 25 日
A channel in audio refers to a separate stream of audio data. The most common values are:
  • 1 channel: Mono
  • 2 channels: Stereo
For example, if you read a stereo WAV file as given below, you will see that ‘y’ will be a N-by-2 matrix where the first column is the left channel and the second column is the right channel:
[y, fs] = audioread(filename.wav');
size(y)
For more information on the ‘audioread’ function, refer to the given MATLAB Documentation:

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by