Observed since 21 Oct, 10:44 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Python library for AI-based Fourier analysis of audio signals, powered by Sinusoidal Neural Networks (SNN).

"Machines can learn Fourier analysis."
aifourier is a Python library for AI-based Fourier analysis of audio signals, powered by Sinusoidal Neural Networks (SNN).
SinusoidalNN repo link (made by Jovan also): https://github.com/jovan-AIcoder/SinusoidalNN
Built on top of the SinusoidalNN python package framework, aifourier learns the frequency components of an audio signal through optimization instead of explicitly computing Fourier integrals.
.wav, .mp3, .flac, .ogg)pip install aifourier
import aifourier as aif
df = aif.analyze(
"audio.mp3",
optimizer="adam"
)
print(df.head())
The returned DataFrame contains:
| Column | Description |
|---|---|
| Frequencies | Learned frequencies (Hz) |
| Phase shift | Learned phase shifts |
| Amplitudes | Learned amplitudes |
Instead of evaluating Fourier coefficients analytically,
y(t) ≈ Σ Aᵢ sin(ωᵢ t + φᵢ)
Where:
these parameters are learned directly from data using a Sinusoidal Neural Network.
aif.analyze(
audio_path,
max_modes=10000,
epochs=256,
use_phase_shift=True,
learning_rate=1e-5,
save_model=None,
verbose=2,
positive_freqs_only=True,
abs_amplitudes=True,
optimizer="adam",
show_spectrum=False,
save_spectrum=None
)
| Parameter | Description |
|---|---|
audio_path | Audio file path |
max_modes | Maximum number of sinusoidal modes |
epochs | Number of training epochs |
use_phase_shift | Learn phase shifts |
learning_rate | Optimizer learning rate |
save_model | Save trained model |
verbose | Training verbosity (0, 1, 2) |
positive_freqs_only | Keep only positive frequencies |
abs_amplitudes | Return absolute amplitudes |
optimizer | Training optimizer |
show_spectrum | Show spectrum plot preview |
save_spectrum | Save spectrum plot figure to desired folder path |
See the examples/ folder:
cd examples
python example.py
Example workflow:
bird.mp3The learned spectrum is shown below.

SinusoidalNN
│
▼
aifourier
SinusoidalNN provides the neural network engine.
aifourier provides an easy-to-use interface for AI-based Fourier analysis of audio signals.
Jovan
2026
MIT License
"What Fourier derives analytically, Sinusoidal Neural Networks can approximate through learning."
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 5.0.0 | 18 Aug 2026 | 6 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 21 Oct, 10:44 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:cfb48b78865554be98c4e76407a7cf8f16a745c3937fdce801307c1443b7092a