필터 지우기
필터 지우기

Two channels in audio recording, how to perform analysis?

조회 수: 24 (최근 30일)
Ivan Arkhipov
Ivan Arkhipov 2021년 7월 13일
댓글: Image Analyst 2021년 7월 14일
This is a rather simple question of audio processing basics that I am struggling to understand. When analyzing audio in MATLAB or any program, what are you supposed to do with multi-channel audio? Do you ignore one channel, like in the example I have below, and only look at the first channel? I understand that the 2 channels represent the left and the right channels, just confused why you can ignore 1 channel when doing fft, plotting spectrograms, etc. Are they the same? Do I lose information if I record to 1 channel instead of 2?
I am working on a project using machine learning to identify anomolies in audio data, and am trying to make sure I am collecting/analyzing data in the right manner.
fname = 'example.wav';
info = audioinfo(fname);
[y,Fs] = audioread(fname);
y=y(:,1);

답변 (1개)

Image Analyst
Image Analyst 2021년 7월 13일
It depends on what you want to do. Perhaps anomolies can be identified in both channels, like a thunderbolt. But if you want to know what side of the "microphone" a dog suddenly barks on? Then you'd need both channels.
What kind of data do you have? Do you have any examples of an audio file that has the kind of "anomalies" that you're trying to find? I mean it could be anything from a pop in an old vinyl record, to a single man talking in a crowd of talking women. So there is an infinite number of things that could be defined as "unusual", depending on the context.
Have you tried looking at the spectrogram to find places where the spectrum suddenly changes? Try the spectrogram() function in the Signal Processing Toolbox.
  댓글 수: 6
Ivan Arkhipov
Ivan Arkhipov 2021년 7월 14일
That is along the lines of what I intend to do, for general anomaly detection. Pressure is just one parameter, though, and there may not be such a clear volume difference with others. Also, this type of analysis would still not allow me to distinguish the two files at different temperatures, or tell if the temperature is changing in a new recording. It does not seem like there is noticeable difference between the two audios here, or atleast not with the analysis methods I have tried (looking at power spectrum and spectrograms).
Image Analyst
Image Analyst 2021년 7월 14일
The solution then may be a deep learning network where you train it with waveforms that are labeled "normal" or "abnormal".

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 AI for Audio에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by