pyACA: Documentation 0.3.1
Source Code for Audio Content Analysis
Loading...
Searching...
No Matches
Functions
pyACA.ToolPreprocAudio Namespace Reference

Functions

 ToolPreprocAudio (x, bNormalize=True)
 helper function: pre-processes an audio signal
 

Function Documentation

◆ ToolPreprocAudio()

ToolPreprocAudio ( x,
bNormalize = True )

helper function: pre-processes an audio signal

Parameters
xarray with floating point audio data (dimension samples x channels)
bNormalizeflag to switch off normalization (default: True)
Returns
x_pp: pre-processed signal

Definition at line 15 of file ToolPreprocAudio.py.

15def ToolPreprocAudio(x, bNormalize=True):
16
17 # pre-processing: downmixing
18 x_pp = ToolDownmix(x)
19
20 # pre-processing: normalization
21 if bNormalize:
22 x_pp = ToolNormalizeAudio(x_pp)
23
24 # additional preprocessing step might include sample rate conversion and filtering
25
26 return x_pp