Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a5e9c95

Browse filesBrowse files
jameslyonsybdarrenwang
authored andcommitted
changed naming for pypi release
1 parent c1c789b commit a5e9c95
Copy full SHA for a5e9c95

1 file changed

-8Lines changed: 0 additions & 8 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎python_speech_features/base.py‎

Copy file name to clipboardExpand all lines: python_speech_features/base.py
-8Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,6 @@ def get_filterbanks(nfilt=20,nfft=512,samplerate=16000,lowfreq=0,highfreq=None):
148148
# from Hz to fft bin number
149149
bin = numpy.floor((nfft+1)*mel2hz(melpoints)/samplerate)
150150

151-
fbank = numpy.zeros([nfilt,nfft//2+1])
152-
for j in range(0,nfilt):
153-
for i in range(int(bin[j]), int(bin[j+1])):
154-
fbank[j,i] = (i - bin[j]) / (bin[j+1]-bin[j])
155-
for i in range(int(bin[j+1]), int(bin[j+2])):
156-
fbank[j,i] = (bin[j+2]-i) / (bin[j+2]-bin[j+1])
157-
return fbank
158-
159151
def lifter(cepstra, L=22):
160152
"""Apply a cepstral lifter the the matrix of cepstra. This has the effect of increasing the
161153
magnitude of the high frequency DCT coeffs.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.