Coder Social home page Coder Social logo

anicolson / matlab_feat Goto Github PK

View Code? Open in Web Editor NEW
13.0 0.0 5.0 40 KB

Functions for creating speech features in MATLAB.

MATLAB 100.00%
mfcc mel-frequency-cepstral-coefficients spectral-suband-energies matlab mel-filter-banks psd magnitude-spectrum power-spectral-density spectral-subband-centroids features

matlab_feat's Introduction

matlab_feat

Digital Signal Processing (DSP) functions for creating Automatic Speech Recognition (ASR) features in MATLAB. Equations to compute the features can be found in [1]. Features included:
Feature Description
STMS Short-Time Magnitude Spectrum
PSD Power Spectral Density
MFCC Mel-Frequency Cepstral Coefficients
LSSE Log-Spectral Subband Energies
SSC Spectral Subband Centroids
Note: LSSEs are equivalent to Log Filter Bank Energies (LFBE).

MFCC Example:

%% SINGLE-CHANNEL SEQUENCE PATH
seq_path = 'path_to_sequence'; % path to the location of the audio sequence.

%% PARAMETERS
x.fs = 16000; % sampling frequency (Hz).
x.Nw = 512; % window length (samples). This is for a 32 ms window.
x.Ns = 256; % window shift (samples). This is for a 16 ms shift.
x.NFFT = 2^nextpow2(x.Nw); % frequency bins (samples).

%% SINGLE-CHANNEL SEQUENCE
[x.wav, ~] = audioread(seq_path); % waveform.

%% MEL-SCALED FILTER BANK
H = melfbank(26, x.NFFT/2 + 1, fs); % mel filter banks.

%% MFCC
x = mfcc(x, H); % compute Mel Frequency Cepstral Coefficients (MFCC).

The elements of struct 'x' include:

x.frm - framed & windowed sequence.
x.STMS - single-sided short-time magnitude spectrum.
x.PSD - single-sided short-time power spectral density.
x.SSE - spectral suband energies.
x.LSSE - log-spectral suband energies.
x.MFCC - mel-frequency cepstral coefficients.

References

[1] Nicolson, A., Hanson, J., Lyons, J. and Paliwal, K., 2018. Spectral Subband Centroids for Robust Speaker Identification using Marginalization-based Missing Feature Theory. International Journal of Signal Processing Systems, 6(1), pp.12-16.

matlab_feat's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.