Skip to content
ModelListedExternal
Download

AST Mns

This model is a fine-tuned Audio Spectrogram Transformer (AST) for audio classification. It classifies audio clips into three categories:

KindOtherVersionRevision a12fcb2

Model source

Kind
Other
File size
336 MB
Version
vRevision a12fcb2
Updated
Sep 13, 2026
Downloads
0
Source
Hugging Face

Source description

Audio Classification with AST (Music / Non-Speech / Speech)

This model is a fine-tuned Audio Spectrogram Transformer (AST) for audio classification.
It classifies audio clips into three categories:

  • Speech
  • Music
  • Non-Speech

The model operates on log-Mel filterbank features extracted from 16 kHz audio and uses a Transformer-based architecture adapted for audio spectrograms.

Training and source code are available here:

GitHub repository:
https://github.com/areffarhadi/audio-classification/tree/main/AST-model


Model Details

Architecture

The model is based on Audio Spectrogram Transformer (AST), which applies the Vision Transformer architecture to audio spectrograms.

Key characteristics:

  • Transformer encoder architecture
  • Patch-based spectrogram representation
  • Learned positional embeddings
  • Classification token and distillation token
  • Final classification head fine-tuned for the target classes

Input

  • Audio format: WAV
  • Sampling rate: 16 kHz
  • Features: Log-Mel filterbank
  • Mel bins: 128
  • Target length: 1024 frames

Output Classes

IndexLabel
0Music
1Non-Speech
2Speech

Usage

Inference code

Sources

1 source
Hugging FacePrimaryVersion a12fcb268ea3377e87fbdac42d503be593a66110
huggingface.co/areffarhadi/AST-mns/tree/a12fcb268ea3377e87fbdac42d503be593a66110

Verified Sep 13

Model artifacts

1 artifact

ast_finetuned.pth

pth · 336 MB · SHA-256 f010417282a7…4218 · Hugging Face

Download

Source excerpts

2 excerpts

--- license: mit tags: - audio - audio-classification - speech - music - pytorch - ast - VAD library_name: pytorch pipeline_tag: audio-classification --- # Audio Classification with AST (Music / Non-Speech / Speech) This model is a **fine-tuned Audio Spectrogram Transformer (AST)** for **audio classification**. It classifies audio clips into three categories: - **Speech** - **Music** - **Non-Speech** The model operates on **log-Mel filterbank features extracted from 16 kHz audio** and uses a **Transformer-based architecture** adapted for audio spectrograms. Training and source code are available here: **GitHub repository:** https://github.com/areffarhadi/audio-classification/tree/main/AST-model --- # Model Details ## Architecture The model is based on **Audio Spectrogram Transformer (AST)**, which applies the Vision Transformer architecture to audio spectrograms. Key characteristics: - Transformer encoder architecture - Patch-based spectrogram representation - Learned positional embeddings - Classification token and distillation token - Final classification head fine-tuned for the target classes ### Input - **Audio format:** WAV - **Sampling rate:** 16 kHz - **Features:** Log-Mel filterbank - **Mel bins:** 128 - **Target length:** 1024 frames ### Output Classes | Index | Label | |------|------| | 0 | Music | | 1 | Non-Speech | | 2 | Speech | --- # Usage [**Inference code**](https://github.com/areffarhadi/audio-classification/blob/main/AST-model/ast_inference_with_manifest.py)

Source context: 0 downloads · 0 likes · Pipeline audio-classification · Library pytorch · Repo areffarhadi/AST-mns