Audio Normalization by MATLAB
Tutorial #7
Published in
1 min readApr 8, 2019
Download Source Code
Description
- Normalize speeches
- Scale speech by its peak value
Function
out = audioNormalization_YW(in, ampMax)
- Required Input Parameters
in Input speech
ampMax Expected peak value (0 ~ 1)
- Output Parameters
out Scaled speech
Example
[s1, fs] = audioread('hello_quiet.wav');
s2 = audioread('hello_loud.wav');ampMax = 0.5;s1_output = audioNormalization_YW(s1, ampMax);
s2_output = audioNormalization_YW(s2, ampMax);