Skip to content

Commit 3cd379e

Browse files
authored
modified docs for window functions
1 parent 2a4c1c6 commit 3cd379e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

python_speech_features/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def mfcc(signal,samplerate=16000,winlen=0.025,winstep=0.01,numcep=13,
2222
:param preemph: apply preemphasis filter with preemph as coefficient. 0 is no filter. Default is 0.97.
2323
:param ceplifter: apply a lifter to final cepstral coefficients. 0 is no lifter. Default is 22.
2424
:param appendEnergy: if this is true, the zeroth cepstral coefficient is replaced with the log of the total frame energy.
25-
:param winfunc: the analysis window to apply to each frame. By default no window is applied.
25+
:param winfunc: the analysis window to apply to each frame. By default no window is applied. You can use numpy window functions here e.g. winfunc=numpy.hamming
2626
:returns: A numpy array of size (NUMFRAMES by numcep) containing features. Each row holds 1 feature vector.
2727
"""
2828
feat,energy = fbank(signal,samplerate,winlen,winstep,nfilt,nfft,lowfreq,highfreq,preemph,winfunc)
@@ -46,7 +46,7 @@ def fbank(signal,samplerate=16000,winlen=0.025,winstep=0.01,
4646
:param lowfreq: lowest band edge of mel filters. In Hz, default is 0.
4747
:param highfreq: highest band edge of mel filters. In Hz, default is samplerate/2
4848
:param preemph: apply preemphasis filter with preemph as coefficient. 0 is no filter. Default is 0.97.
49-
:param winfunc: the analysis window to apply to each frame. By default no window is applied.
49+
:param winfunc: the analysis window to apply to each frame. By default no window is applied. You can use numpy window functions here e.g. winfunc=numpy.hamming
5050
:returns: 2 values. The first is a numpy array of size (NUMFRAMES by nfilt) containing features. Each row holds 1 feature vector. The
5151
second return value is the energy in each frame (total energy, unwindowed)
5252
"""
@@ -95,7 +95,7 @@ def ssc(signal,samplerate=16000,winlen=0.025,winstep=0.01,
9595
:param lowfreq: lowest band edge of mel filters. In Hz, default is 0.
9696
:param highfreq: highest band edge of mel filters. In Hz, default is samplerate/2
9797
:param preemph: apply preemphasis filter with preemph as coefficient. 0 is no filter. Default is 0.97.
98-
:param winfunc: the analysis window to apply to each frame. By default no window is applied.
98+
:param winfunc: the analysis window to apply to each frame. By default no window is applied. You can use numpy window functions here e.g. winfunc=numpy.hamming
9999
:returns: A numpy array of size (NUMFRAMES by nfilt) containing features. Each row holds 1 feature vector.
100100
"""
101101
highfreq= highfreq or samplerate/2

0 commit comments

Comments
 (0)