Changeset c03d191 for python/tests/test_mfcc.py
- Timestamp:
- Nov 17, 2018, 10:19:27 PM (5 years ago)
- Branches:
- feature/constantq
- Children:
- d1d4ad4
- Parents:
- 088760e (diff), a114fe0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/tests/test_mfcc.py
r088760e rc03d191 111 111 #print coeffs 112 112 113 114 class aubio_mfcc_fb_params(TestCase): 115 116 def test_set_scale(self): 117 buf_size, n_filters, n_coeffs, samplerate = 512, 20, 10, 16000 118 m = mfcc(buf_size, n_filters, n_coeffs, samplerate) 119 m.set_scale(10.) 120 m(cvec(buf_size)) 121 122 def test_set_power(self): 123 buf_size, n_filters, n_coeffs, samplerate = 512, 20, 10, 16000 124 m = mfcc(buf_size, n_filters, n_coeffs, samplerate) 125 m.set_power(2.) 126 m(cvec(buf_size)) 127 128 def test_set_mel_coeffs(self): 129 buf_size, n_filters, n_coeffs, samplerate = 512, 20, 10, 16000 130 m = mfcc(buf_size, n_filters, n_coeffs, samplerate) 131 m.set_mel_coeffs(0., samplerate/2.) 132 m(cvec(buf_size)) 133 134 def test_set_mel_coeffs_htk(self): 135 buf_size, n_filters, n_coeffs, samplerate = 512, 20, 10, 16000 136 m = mfcc(buf_size, n_filters, n_coeffs, samplerate) 137 m.set_mel_coeffs_htk(0., samplerate/2.) 138 m(cvec(buf_size)) 139 140 def test_set_mel_coeffs_slaney(self): 141 buf_size, n_filters, n_coeffs, samplerate = 512, 40, 10, 16000 142 m = mfcc(buf_size, n_filters, n_coeffs, samplerate) 143 m.set_mel_coeffs_slaney(samplerate) 144 m(cvec(buf_size)) 145 assert m.get_power() == 1 146 assert m.get_scale() == 1 147 113 148 if __name__ == '__main__': 114 149 main()
Note: See TracChangeset
for help on using the changeset viewer.