Two channels in audio recording, how to perform analysis?

24 次查看(过去 30 天)
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