Fix voice sample validation on Python 3.13 (fixes #852) (#853)

* Fix voice sample validation on Python 3.13

Python 3.13 removed audioop from the standard library, which broke reference
audio validation when adding voice samples. Add the audioop-lts backport for
3.13+ installs and bundle audioop in PyInstaller builds on the same versions.

* style(tests): satisfy Ruff import ordering

---------

Co-authored-by: Jamie Pine <[email protected]>
This commit is contained in:
Aftaab Siddiqui
2026-07-20 22:35:23 -07:00
committed by GitHub
co-authored by Jamie Pine
parent fb1e16d2ce
commit 52f8d8dd38
3 changed files with 127 additions and 0 deletions
+1
View File
@@ -53,6 +53,7 @@ en_core_web_sm @ https://github.com/explosion/spacy-models/releases/download/en_
unidic-lite>=1.0.8
# Audio processing
audioop-lts>=0.2.1; python_version >= "3.13"
librosa>=0.10.0
soundfile>=0.12.0
numpy>=1.24.0,<2.0