示例#1
0
def test_show_spectrogram():
    audio = test_audio_tensor()
    a2s = AudioToMFCC.from_cfg(AudioConfig.BasicMFCC())
    sg = a2s(audio)
    sg.show()
示例#2
0
def test_mfcc_transform():
    audio = test_audio_tensor()
    a2s = AudioToMFCC.from_cfg(AudioConfig.BasicMFCC())
    sg = a2s(audio)
    assert len(sg.shape) == 3