Spaces:
Runtime error
Runtime error
| """pyaudioop shim - provides audioop compatibility for Python 3.13+""" | |
| # audioop module was removed from Python 3.13 standard library | |
| # This shim provides minimal compatibility | |
| import sys | |
| class _Error(Exception): | |
| pass | |
| def error(fmt, *args): | |
| raise _Error(fmt % args) | |
| # Provide minimal stub functions | |
| def max(data, width): | |
| return 0 | |
| def min(data, width): | |
| return 0 | |
| def rms(data, width): | |
| return 0 | |
| def add(data1, data2, width): | |
| return data1 | |