Files
tinygrad/examples
C T 26f8b12e01 Whisper audio helpers (mel filters in tinygrad) (#13478)
* add whisper audio helpers for stft/mel/resample

* cleanup

* add whisper stft test

* make only stft test explicitly depend on librosa

* extract sinc_window_kernel

* dehardcode device

* use same device argument

* simplify

* type annotate

* ruff format audio_helpers.py

* ruff format test_whisper.py

* add WHISPER_NEW_STFT

* rename

* undo ruff format changes

* use new stft and mel for whisper

* remove stft test that depends on librosa

* remove whitespace

* add Tensor.log10 with test\test_ops.py::TestOps::test_log10

* use Tensor.log10

* fix lint

* future: remove unused STFT class

* future: remove resample code since it isn't used (yet)

* match openai with pad_mode="reflect"

* pad_to

* future: cut resample leftovers

* cleanup

* add mel tests

* future: cut stft

* future: cut non-mel prep_audio changes

* reduce diff

* move audio_helpers.py to examples

* reduce whitespace

* fix imports

* reduce whitespace

---------

Co-authored-by: chenyu <chenyu@fastmail.com>
2026-01-20 10:50:02 -05:00
..
2026-01-16 16:38:45 -08:00
2025-06-08 08:42:22 -07:00
2025-06-08 08:42:22 -07:00
2023-03-11 16:28:10 -08:00
2025-10-08 04:54:07 -04:00
2025-02-20 18:03:09 -05:00
2025-10-16 09:55:20 -04:00
2025-10-08 04:54:07 -04:00
2025-02-26 13:22:08 -05:00
2025-08-10 20:33:22 -04:00
2025-12-01 22:50:53 -08:00
2025-06-05 17:17:42 -07:00