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