Borrar filtros
Borrar filtros

Two channels in audio recording, how to perform analysis?

24 visualizaciones (últimos 30 días)
Ivan Arkhipov
Ivan Arkhipov el 13 de Jul. de 2021
Comentada: Image Analyst el 14 de Jul. de 2021
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);

Respuestas (1)

Image Analyst
Image Analyst el 13 de Jul. de 2021
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 comentarios
Ivan Arkhipov
Ivan Arkhipov el 14 de Jul. de 2021
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 el 14 de Jul. de 2021
The solution then may be a deep learning network where you train it with waveforms that are labeled "normal" or "abnormal".

Iniciar sesión para comentar.

Categorías

Más información sobre AI for Audio en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by