Commit c76fdb9
committed
Improve Python 3.10+ compatibility and threading stability.
- Replace PyAudio callback mechanism with explicit threading due to callback
reliability issues in Python 3.10+ where stream callbacks became less stable
- Improve audio handling stability and error handling throughout AudioImpulseRunner
- Add comprehensive type hints and documentation to audio and image modules
- Document optional dependency installation patterns in README
Python 3.10 introduced stricter threading behavior that caused PyAudio's
callback-based approach to become unreliable, leading to audio capture failures.
The new explicit threading approach provides better control and stability.
Signed-off-by: Davide Colì <davide.coli@secomind.com>1 parent 04d0445 commit c76fdb9
File tree
5 files changed
+503
-133
lines changed- src/edge_impulse_linux
5 files changed
+503
-133
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
1 | 14 | | |
2 | 15 | | |
3 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
0 commit comments