from pathlib import Path import wave import numpy as np ROOT = Path(__file__).resolve().parents[2] files = list((ROOT/"assets/sounds/surface").glob("*.wav")) assert len(files) == 13 seams = [] for path in files: with wave.open(str(path)) as stream: assert stream.getnchannels() == 2 and stream.getsampwidth() == 2 and stream.getframerate() == 48000 signal = np.frombuffer(stream.readframes(stream.getnframes()),dtype="