From 5ccbcc5752a12907cdb1e852065907aee9e798cc Mon Sep 17 00:00:00 2001 From: Dom <168790843+firestar5683@users.noreply.github.com> Date: Sun, 25 Oct 2026 17:11:03 -0500 Subject: [PATCH] ci: recognize the NumPy sinc identifier in speaker filtering --- openpilot/starpilot/audio/sound_pack.py | 2 +- prebuilt.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openpilot/starpilot/audio/sound_pack.py b/openpilot/starpilot/audio/sound_pack.py index 83d832c739..9a1619b524 100644 --- a/openpilot/starpilot/audio/sound_pack.py +++ b/openpilot/starpilot/audio/sound_pack.py @@ -232,7 +232,7 @@ def read_wav(path: Path) -> np.ndarray: def tici_speaker_samples(samples: np.ndarray) -> np.ndarray: """Reduce bass excursion in built-in tones, once at load time.""" taps = np.arange(513, dtype=np.float64) - 256 - lowpass = np.sinc(2 * 650 / 48000 * taps) * np.hamming(len(taps)) + lowpass = np.sinc(2 * 650 / 48000 * taps) * np.hamming(len(taps)) # codespell:ignore sinc lowpass /= lowpass.sum() bass = np.convolve(samples, lowpass, mode="full")[256:256 + len(samples)] result = samples.astype(np.float64) - 0.75 * bass diff --git a/prebuilt.json b/prebuilt.json index 11aee60781..d135192152 100644 --- a/prebuilt.json +++ b/prebuilt.json @@ -1 +1 @@ -{"protected_inventory_sha256": "a735f236c8645066bb91a393dcb38f35173fe7b26bab0cef572d1840463b5101", "schema_version": 1} +{"protected_inventory_sha256": "d76cadf2b4bac652b714f6ca834765ea7cf82507bc5312929b394132b35cd135", "schema_version": 1}