How to find the highest peaks in an audio signal?

조회 수: 5 (최근 30일)
RamSum
RamSum 2015년 2월 14일
답변: Greg Dionne 2015년 3월 24일
Hi,
I have a set of audio files(.wav). Each audio file is the recording of a user typing a 8 letter word. Each letter when typed produces two sounds 1. when key is pressed, 2. when key is released. Total 16 sounds are produced for one complete typing. My question is, How can I find the highest peak of each press and release and how can I extract the timing information when a peak is occurred?
To simply my question, How to extract the timing information when a sound is produced?
How can i solve this problem. Please anyone guide me on this.
Thanks in advance.
  댓글 수: 4
Star Strider
Star Strider 2015년 2월 16일
I was hoping for the .wav file, not the image. I would have done a spectrogram of it to see if the key-press and key-release had different (and ideally repeatable) spectra, then if they did, design appropriate digital filters to detect them.
Oh, well...
RamSum
RamSum 2015년 2월 16일
Sorry I misunderstood. Here is the audio file of the typing.

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

채택된 답변

Greg Dionne
Greg Dionne 2015년 3월 24일
Try something like this to get you started:
y = audioread('U1_S1_T1.wav')
yLeft = y(:,1);
yrmsenvLeft = sqrt(conv(yLeft.^2,ones(200,1)/200,'same'))
plot([yLeft yrmsenvLeft])

추가 답변 (1개)

Image Analyst
Image Analyst 2015년 2월 15일
I know it seems obvious, but how about just thresholding??
loudElements = signal > someValue; % Logical vector.
loudIndexes = find(loudElements); % Linear indexes - actual index numbers.
Anyway, it's a start. If you need something more robust and sophisticated, you'll have to tweak it and develop something better.
  댓글 수: 9
RamSum
RamSum 2015년 2월 17일
I don't have an image processing tool box. How can i get it? Does it cost, if does how much?
Image Analyst
Image Analyst 2015년 2월 17일
Type "ver" to see if you have it. If you want it, you'll have to contact the Mathworks.

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

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by