Copyright 2014-2015 Anthony Larcher and Sylvain Meignier
frontend provides methods to process an audio signal in order to extract useful parameters for speaker verification.
Apply a morphological filtering on the label to remove isolated labels. In case the input is a two channel label (2D ndarray of boolean of same length) the labels of two channels are fused to remove overlaping segments of speech.
Parameters: |
|
---|
Pre-emphasis of an audio signal.
Parameters: | pre – value that defines the pre-emphasis filter. |
---|
Generate a new array that chops the given array along the given axis into overlapping frames.
This method has been implemented by Anne Archibald, as part of the talk box toolkit example:
segment_axis(arange(10), 4, 2)
array([[0, 1, 2, 3],
( [2, 3, 4, 5],
[4, 5, 6, 7],
[6, 7, 8, 9]])
Parameters: |
|
---|---|
Returns: | a ndarray |
The array is not copied unless necessary (either because it is unevenly strided and being flattened or because end is set to ‘pad’ or ‘wrap’).
This program is only to process the single file seperated by the silence section if the silence section is detected, then a counter to number of buffer is set and pre-processing is required.
Usage: SpeechENhance(wavefilename, Gain, Noise_floor)
Parameters: |
|
---|---|
Returns: | a 1-dimensional array of boolean that is True for high energy frames. |
Copyright 2014 Sun Han Wu and Anthony Larcher
Select high energy frames based on the Signal to Noise Ratio of the signal.
Parameters: |
|
---|