Install & Compatibility
Where this runs
tested against v1.0.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 318.9MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 11.0s · import 0.000s · 306MB
321MB installed
● package 321MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Gammatone
✓ from gammatone import Gammatone
✗ from gammatone.gammatone_impl import Gammatone
Create a gammatone-based cochleagram from an audio signal.
import numpy as np
from gammatone.gtgram import gtgram
# Generate a cochleagram from a sample audio signal
fs = 16000
duration = 0.1
t = np.linspace(0, duration, int(fs*duration), endpoint=False)
signal = np.sin(2*np.pi*1000*t) # 1 kHz tone
# Compute gammatone spectrogram (cochleagram)
coch = gtgram(signal, fs, window_time=0.02, hop_time=0.01, channels=64, f_min=50, f_max=8000)
print(coch.shape)
Upgrade
Version history
1.0.3latest on PyPI · released Sep 10, 2024
Audit
Dependencies
No dependency data recorded yet.