Model Card & Runtime Contract
- Upstream Model
- laion/larger_clap_music_and_speech
- Loaded ONNX Repo
- Xenova/larger_clap_music_and_speech
- Task & Projection
zero-shot-audio-classification·512-djoint audio/text embeddings- Backend & Quant
WASM·q8(204.94 MB ONNX + 2.11 MB tok/cfg = 207.05 MB)- Audio Frontend
48,000 Hzmono ·64-band log-mel (50–14,000 Hz ·n_fft=1024·hop=480· ≤10 s)- Architecture & License
- HTSAT-large (
1024-d, unfused) + RoBERTa (768-d) ·Apache-2.0
clap-zero-shot-audio (clap-htsat-unfused):
This checkpoint uses the larger HTSAT-large audio backbone
(hidden_size=1024, patch_embeds_hidden_size=128 vs base 768/96)
trained specifically on Music + Speech datasets rather than general environmental sounds.
config.json declares logit_scale_init_value: 14.2857 (1/0.07) and unfused
repeatpad / rand_trunc 10 s framing.
Load & Cache Status
Live Zero-Shot Music & Speech Classifier
.wav, .mp3, .ogg, .flac, .m4a, .webm) — decoded locally to 48 kHz mono.
Zero-Shot Softmax Probabilities & Raw Cosine Similarities
Load the model above to embed the 48 kHz audio and every custom prompt into CLAP's 512-d space.
See Inside the Model (64-Band Log-Mel & 512-d Audio Tensor)
64-Band Log-Mel Spectrogram (50 Hz – 14 kHz)
Time left→right · frequency 50 Hz bottom → 14 kHz top · exact ClapFeatureExtractor geometry.
512-d Audio Embedding Distribution
Run inference to inspect the live 512-d projected audio vector and tensor shapes.
Raw Tensor Readout (Cosine × Learned Scale = Logit → Softmax)
| Rank | Prompt Label | RoBERTa Tokens | Raw Cosine | Scaled Logit | Softmax Prob |
|---|---|---|---|---|---|
| Awaiting live inference… | |||||
Why It Matters
- Music + speech specialization: Unlike general sound-effect classifiers, Larger-CLAP Music & Speech aligns musical instrumentation, genres, vocal styles, and spoken audio descriptions in a single 512-d space.
- Zero-shot taxonomy iteration: Change genres, moods, vocal roles, or podcast/music moderation labels on the fly with zero retraining or server-side GPU fees.
- Private local audio indexing: Audition unreleased studio stems, voice memos, or client audio libraries directly inside the browser tab — zero bytes uploaded.