Show HN: clap.cpp – Audio embedding inference in C++ (GGML) github.com · 2 point...
Show HN @show
Show HN: clap.cpp – Audio embedding inference in C++ (GGML) github.com · 2 points · 0 comments · HN thread
TL;DR clap.cpp is a Show HN project: a C++20 implementation on ggml for computing text and audio embeddings with CLAP-family and related audio models. It loads GGUF-converted models and offers a CLI, an OpenAI-compatible HTTP server, and Python, Rust and Node.js bindings. The thread had no comments at the time of capture, with 2 points.
- Accepts WAV, MP3 and FLAC input, resampling to each model's required rate and mixing stereo or multichannel audio down to mono.
- Supports CLAP, CLAP2 (Large, Medium, Small, XS, XXS), CLaMP3, MERT v1/v2, MuQ and MuQ-MuLan, with embedding sizes from 224 to 1,024 and sample rates of 24, 32 or 48 kHz.
- Text embeddings are available only for CLAP, CLAP2, CLaMP3 and MuQ-MuLan; the MERT and MuQ models are audio-only.
- Backends are CPU, CUDA and Vulkan for Python and Rust, and CPU only for Node.js.
- clap serve exposes an OpenAI-compatible /v1/embeddings endpoint, with audio sent as base64 in input_audio blocks; the model is identified by its GGUF filename.
- Licensed under Apache 2.0; GGUF model files are published in a Hugging Face collection.
Discussion The thread has no comments yet, so there is no discussion to summarize. The submission has only 2 points.