added changes on checking similarity

This commit is contained in:
kicap1992
2022-03-21 00:07:28 +08:00
parent 638f0a9aee
commit 9da68fbc38
172 changed files with 99465 additions and 49 deletions

12
base/api/wavread.py Normal file
View File

@ -0,0 +1,12 @@
from .wavsound import wavsound
"""wavread is a testing module to test the functionality of wavsound"""
button_wavsound = wavsound('db/button.wav')
print(button_wavsound)
beep_wavsound = wavsound('db/buttonresampled.wav')
print(beep_wavsound)
print (len(button_wavsound.get_data()))
print (len(beep_wavsound.get_data()),len(button_wavsound.get_data()))
print(button_wavsound.get_chunk(0,100))