---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://mixpeek.com/.well-known/search?q={query}"
  method: GET
  documentation: "https://mixpeek.com/llms.txt"
---

[Models](/models)/[Embeddings](/models?category=embeddings)/facebook/encodec\_24khz

HFAudio EmbeddingsMIT

# encodec\_24khz

by facebook

High-fidelity neural audio codec for compression and embeddings

362Kdl/month

55likes

23Mparams

[HuggingFace](https://huggingface.co/facebook/encodec_24khz)[Run it on your own data, free](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)

Identifiers

Model ID

`facebook/encodec_24khz`

## Deploy encodec\_24khz

Single-tenant

Mixpeek has no managed extractor for this model. On a single-tenant deployment you upload the weights and a custom plugin serves them next to the rest of your pipeline.

[Read the customer-hosted guide](https://mixpeek.com/docs/customer-hosted/overview) [Talk to us about single-tenant](/demo)

## Overview

EnCodec is a neural audio codec that compresses audio at various bitrates while maintaining high quality. Its encoder produces rich intermediate representations that serve as effective audio embeddings.

On Mixpeek, EnCodec provides audio embeddings that capture tonal, rhythmic, and structural audio features, useful for music similarity, audio fingerprinting, and content-based audio retrieval.

## Architecture

Encoder-decoder architecture with a quantized bottleneck using Residual Vector Quantization (RVQ). Encoder: 1D causal convolutions. Decoder: mirrored architecture. Trained with reconstruction, perceptual, and adversarial losses.

## Mixpeek SDK Integration

IngestRetrieve

// No extractor parameter takes a Hugging Face model id (checked against
// GET /v1/discovery/extractors, which returns 13), so encodec\_24khz runs
// on your side and the output is upserted through POST
// /v1/namespaces/{namespace\_id}/documents/upsert. On Enterprise the other
// path is to upload the weights instead: POST /v1/namespaces/{id}/models
// accepts the huggingface format and a custom plugin loads them.
const res = await fetch(
  "https://api.mixpeek.com/v1/namespaces/ns\_your\_namespace/documents/upsert",
  {
    method: "POST",
    headers: {
      Authorization: "Bearer API\_KEY",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      collection\_id: "col\_your\_collection",
      documents: \[
        {
          document\_id: "asset-00412",
          // The vector name has to match a vector index on the collection.
          vectors: { "audio-embedding": yourVector },
          payload: { source\_key: "archive/2026/asset-00412" },
        },
      \],
    }),
  },
);

// Managed alternative, if this exact model is not the requirement:
// audio\_fingerprint\_extractor@v1 runs laion/clap-htsat-tiny
// (512-d) over a bucket, with no inference of your own.

## Capabilities

*   Variable bitrate audio compression (1.5-24 kbps)
*   Rich intermediate audio representations
*   High-fidelity audio reconstruction
*   Supports mono and stereo at 24kHz

## Use Cases on Mixpeek

Music similarity search, find tracks with similar characteristics

Audio fingerprinting, identify duplicate or near-duplicate audio

Podcast/audiobook similarity matching

## Benchmarks

Dataset

Metric

Score

Source

MUSHRA (24kHz, 6kbps)

MUSHRA Score

72.4

Défossez et al., 2023: Table 1

ViSQOL (24kHz, 6kbps)

ViSQOL MOS

3.79

Défossez et al., 2023: Table 1

## Performance

Input Sizevariable audio length

Embedding Dim128 (per codebook)

GPU Latency~2ms / second of audio (A100)

GPU Throughput~500× realtime (A100)

GPU Memory~0.3 GB

## Common Pipeline Companions

[

openai/whisper-large-v3

Transcription alongside audio encoding

](/model/openai/whisper-large-v3)[

laion/clap-htsat-fused

Semantic audio search

](/model/laion/clap-htsat-fused)

## Explore on Mixpeek

[

More Embeddings models

Compare alternatives in this category

](/models?category=embeddings)[

Best Multimodal Embedding Models

Hand-picked tools & platforms compared

](/curated-lists/best-multimodal-embedding-models)[

How CLIP, SigLIP & CLAP Work

Deep-dive technical guide

](/guides/contrastive-learning-how-clip-siglip-and-clap-work)[

Feature Extractors

See how Mixpeek runs models as extractors

](/extractors)[

Mixpeek Vector Store

Store & search embeddings at scale

](/mvs)[

Pricing

Usage-based pricing for pipelines

](/pricing)[

All Curated Lists

Compare models, APIs & infrastructure

](/curated-lists)

### Specification

FrameworkHF

Organizationfacebook

FeatureAudio Embeddings

Output512-dim vector

Modalitiesvideo, audio

RetrieverAudio Similarity

Parameters23M

LicenseMIT

Downloads/mo362K

Likes55

[

### Research Paper

High Fidelity Neural Audio Compression

arxiv.org](https://arxiv.org/abs/2210.13438)

### Build a pipeline with encodec\_24khz

Add this model to a processing pipeline alongside other extractors. Combine with retrieval stages for end-to-end search.

[Run it on your own data, free](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)

### Alternative Models

[

laion/clap-htsat-fused

Audio Embeddings

](/model/laion/clap-htsat-fused)[

facebook/pe-av-large

Audio Embeddings

](/model/facebook/pe-av-large)[

tsinghua-ee/WAVE-7B

Audio Embeddings

](/model/tsinghua-ee/WAVE-7B)[

laion/larger\_clap\_general

Audio Embeddings

](/model/laion/larger_clap_general)

### Related in Embeddings

[

openai/clip-vit-large-patch14

Visual Embeddings

](/model/openai/clip-vit-large-patch14)[

google/siglip-base-patch16-224

Visual Embeddings

](/model/google/siglip-base-patch16-224)[

google/siglip2-giant-opt-patch16-384

Visual Embeddings

](/model/google/siglip2-giant-opt-patch16-384)[

facebook/dinov2-large

Visual Embeddings

](/model/facebook/dinov2-large)