how to apply wavelet and extract the features from speech signal

조회 수: 6 (최근 30일)
santhosh b
santhosh b 2015년 3월 2일
답변: Snehal 2025년 1월 29일
Hi everyone i am doing my project in "Word spotting in continuous speech using wavelet transform" i want matlab code to perform wavelet transform and feature extraction. please any one help me...

답변 (1개)

Snehal
Snehal 2025년 1월 29일
Hi,
I understand that you want to know how to apply wavelet transform and feature extraction on speech signals.
This can be achieved with help of Wavelet toolbox
  1. Wavelet Transform: The toolbox provides different functions like ‘wavedec’ for discrete wavelet transform (DWT) and ‘cwt’ for continuous wavelet transform (CWT). For speech processing, DWT is commonly used due to its efficiency and ability to localize features in time.
  2. Feature Extraction: Make use of functions like ‘appcoef and ‘detcoef for extracting the approximation and detail coefficients from wavelet decomposition respectively. These coefficients can then be used to calculate statistical features like energy and entropy.
Refer to the sample code below:
% Performing Discrete Wavelet Transform (DWT) on the speech signal
[c, l] = wavedec(speechSignal, decompLevel, waveletName);
% decompLevel refers to the level of decomposition of the speech signal
% using the 'appcoef' and 'detcoef' functions for extracting approximation and detail coefficients
approximation = appcoef(c, l, waveletName, decompLevel);
details = detcoef(c, l, 1:decompLevel);
% calculating the energy from coefficients (feature extraction)
energyApproximation = sum(approximation.^2);
energyDetails = cellfun(@(x) sum(x.^2), details);
Alternatively, you can also use MFCC features (Audio toolbox) and LSTM (Deep Learning toolbox) to implement word spotting in MATLAB.
Refer to the following documentations for better understanding:
Hope this helps.

카테고리

Help CenterFile Exchange에서 Signal Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by