Saltar al contenido
ModelPublicadoExterno
Browse files

Audio Audio Majestrino With Emotion And Quality Experts

A ViT-Base audio encoder trained via contrastive learning on 100 million DACVAE-encoded audio samples, paired with lightweight MLP expert heads for emotion recognition, speaker embedding prediction, and audio quality...

TipoOtherVersiónAttribute probeUnratedcalidad

Fuente del modelo

Tipo
Other
Tamaño del archivo
150 KB–328 MB
Versión
vAttribute probe
Actualizado
5 nov 2026
Fuente
Hugging Face

Descripción de la fuente

Audio-Audio Majestrino with Emotion and Quality Experts

A ViT-Base audio encoder trained via contrastive learning on 100 million DACVAE-encoded audio samples, paired with lightweight MLP expert heads for emotion recognition, speaker embedding prediction, and audio quality assessment.

Overview

This model operates in the DACVAE latent space rather than on raw waveforms. Audio is first encoded to DACVAE latents (25fps × 128-dim float vectors), then the ViT-Base encoder produces a 512-dimensional embedding. Specialized MLP heads predict various audio attributes from this embedding.

Architecture

Raw Audio (48kHz)
    ↓
DACVAE Encoder (facebook/dacvae-watermarked)
    ↓
DACVAE Latents (T × 128, float16, 25fps)
    ↓
ViT-Base Encoder (86M params)
  - 1D patch embedding: Conv1d(128→768, kernel=5, stride=5)
  - 12 transformer layers (768-dim, 12 heads, 3072 MLP dim)
  - CLS token pooling → LayerNorm → Linear(768→512) → L2-normalize
    ↓
512-dim Audio Embedding
    ↓
Expert MLP Heads:
  ├── Emotion Expert (144K params)    → 40 emotion predictions (best)
  ├── Attribute Expert (60K params)   → 13 non-emotion attribute predictions (best)
  ├── All-53 Expert (212K params)     → 53 combined predictions (alternative)
  ├── Attribute Probe (898K params)   → 53 emotion/speaker attributes + duration
  ├── Speaker Probe (950K params)     → 128-dim timbre embedding
  ├── 5× Quality Experts (37K each)   → individual quality scores
  └── Distortion Expert (74K params)  → binary clean vs distorted (BCE)

Models Included

ModelFileParamsDescription
ViT-Base Encoderencoder.pt86MCore audio encoder, produces 512-dim embeddings
Emotion Expert (40)emotion_expert_emo40.pt144KBest for 40 emotion dimensions (MAE 0.345)
Attribute Expert (13)emotion_expert_attr13.pt60KBest for 13 non-emotion attributes (MAE 0.507)
All-53 Expertemotion_expert_all53.pt212KAll 53 attributes in one model (MAE 0.387)
Attribute Probeattribute_probe.pt898KPredicts 53 emotion/speaker attributes + duration
Speaker Probespeaker_probe.pt950KPredicts 128-dim wavelm timbre embedding
Quality: CPSquality_expert_cps.pt37KCharacters per second (speech rate)
Quality: Backgroundquality_expert_score_background_quality.pt37KBackground noise quality
Quality: Contentquality_expert_score_content_enjoyment.pt37KContent enjoyment
Quality: Overallquality_expert_score_overall_quality.pt37KOverall audio quality
Quality: Speechquality_expert_score_speech_quality.pt37KSpeech quality
Distortion Expertdistortion_expert.pt74KBinary clean vs. distorted classifier (92.5% acc, 0.984 ROC-AUC)

Training Details

ViT-Base Encoder (Contrastive Pre-training)

The encoder was trained using symmetric InfoNCE contrastive loss with data augmentation on DACVAE latents:

Final validation metrics (audio-to-audio retrieval, 3K samples):

MetricValue
Drop→Complete Top-199.1%
Drop→Complete Top-5100%
Complete→Drop Top-199.2%
Complete→Drop Top-5100%
Half1→Half2 Top-191.7%
Half1→Half2 Top-397.8%

Emotion Experts v2 (Multi-Output MLPs)

Three multi-output MLP experts trained on 220K merged samples (68K emotion-attribute-conditioning + 159K balanced-audio-snippets, deduplicated). Evaluated on a common held-out 2000-sample validation set.

53 Attributes (scale 0-4):

  • 40 emotions: Affection, Amusement, Anger, Astonishment/Surprise, Awe, Bitterness, Concentration, Confusion, Contemplation, Contempt, Contentment, Disappointment, Disgust, Distress, Doubt, Elation, Embarrassment, Emotional Numbness, Fatigue/Exhaustion, Fear, Helplessness, Hope/Enthusiasm/Optimism, Impatience and Irritability, Infatuation, Interest, Intoxication/Altered States, Jealousy & Envy, Longing, Malevolence/Malice, Pain, Pleasure/Ecstasy, Pride, Relief, Sadness, Sexual Lust, Shame, Sourness, Teasing, Thankfulness/Gratitude, Triumph
  • 10 speaker/voice attributes: Age, Gender, Confident vs. Hesitant, High-Pitched vs. Low-Pitched, Monotone vs. Expressive, Serious vs. Humorous, Soft vs. Harsh, Submissive vs. Dominant, Vulnerable vs. Emotionally Detached, Warm vs. Cold
  • 3 dimensional: Valence, Arousal, Authenticity
ModelArchitectureParamsOutputsMean MAE
Emotion-40 (best for emotions)512→192→192→40144K40 emotions0.345
Attribute-13 (best for non-emotions)512→96→96→1360K13 non-emotion attrs0.507
All-53 (combined)512→256→256→53212KAll 53 attributes0.387
  • Training: 200 epochs, Huber loss (delta=1.0), AdamW (lr=1e-3, weight_decay=1e-4), CosineAnnealingLR, batch_size=4096
  • Architecture: Linear→LayerNorm→GELU→Dropout(0.1) × 2 hidden layers → Linear→output_dim
  • The Emotion-40 model wins 31/53 attributes, All-53 wins 19/53, Attribute-13 wins 3/53

For best per-attribute performance, use Emotion-40 for the 40 emotion dims and Attribute-13 for the 13 non-emotion dims.

Per-attribute MAE (best model per attribute, sorted best to worst):

AttributeBest MAEModelAttributeBest MAEModel
Jealousy & Envy0.099emo40Contemplation0.429emo40
Embarrassment0.151emo40Affection0.435all53
Infatuation0.156emo40Amusement0.284emo40
Shame0.155emo40Elation0.443emo40
Intoxication0.165emo40Pleasure/Ecstasy0.447all53
Sexual Lust0.184emo40Disappointment0.479emo40
Sourness0.207emo40Impatience0.522emo40
Disgust0.222emo40Arousal0.522all53
Fatigue/Exhaustion0.224emo40Confident vs. Hesitant0.521all53
Relief0.237emo40Interest0.537emo40
Fear0.257emo40Concentration0.553all53
Teasing0.255emo40Hope/Enthusiasm0.558emo40
Pitch (High vs. Low)0.273all53Sadness0.564emo40
Pain0.274emo40Distress0.559emo40
Astonishment/Surprise0.299emo40Gender0.597all53
Doubt0.302emo40Warm vs. Cold0.571all53
Malevolence/Malice0.301all53Submissive vs. Dominant0.468all53
Bitterness0.312emo40Vulnerable vs. Detached0.541all53
Confusion0.314emo40Monotone vs. Expressive0.406attr13
Authenticity0.331all53Age0.451attr13
Contempt0.352all53Valence0.985attr13
Triumph0.373emo40Soft vs. Harsh0.448all53
Helplessness0.404emo40Serious vs. Humorous0.429all53
Contentment0.431all53Longing0.408emo40
Emotional Numbness0.369emo40Pride0.452all53
Anger0.433emo40Thankfulness/Gratitude0.443all53

Attribute Probe (Two-Phase Training)

Predicts 53 attributes from the 512-dim embedding using a shared backbone with separate heads for attributes and duration. This is a legacy model — the v2 Emotion Experts above achieve better per-attribute MAE.

Phase 1 (pre-training): 10 epochs on TTS-AGI/emotion-attribute-conditioning-dacvae (68K samples) Phase 2 (fine-tuning): 50 epochs on TTS-AGI/balanced-audio-snippets-40x3k-DACVAE (132K) + TTS-AGI/emolia-3k-speaker-clusters-DACVAE (27K)

  • Architecture: Linear(512→704)→LN→GELU→Dropout(0.1)→Linear(704→704)→LN→GELU→Dropout(0.1), attr_head(704→53), dur_head(704→1)
  • Loss: Huber (delta=1.0)
  • Optimizer: AdamW (lr=1e-3, weight_decay=1e-4), CosineAnnealingLR
  • Best val loss: 0.459 (Phase 2, epoch 41)
  • Mean attribute MAE: 0.398

Speaker Probe (Two-Phase Training)

Predicts 128-dim wavelm timbre embedding from the 512-dim audio embedding.

Phase 1: 10 epochs on emotion-attribute-conditioning-dacvae (68K samples) Phase 2: 30 epochs on TTS-AGI/emolia-3k-speaker-clusters-DACVAE (63K samples, 3000 speaker clusters)

  • Architecture: Linear(512→704)→LN→GELU→Dropout(0.1)→Linear(704→704)→LN→GELU→Dropout(0.1)→Linear(704→128)
  • Val split: 1 sample per cluster (3000 val samples)
  • Best val loss: 0.00236
  • Cosine similarity: 0.625
  • MAE: 0.054

Quality Experts

Five independent small MLPs trained on TTS-AGI/balanced-audio-score-datasets-DACVAE.

ExpertVal MAEVal LossDescription
CPS4.6384.198Characters per second (speech rate)
Background Quality0.2920.087Background noise quality (0-4 scale)
Content Enjoyment0.4830.188Content enjoyment rating (0-8.6 scale)
Overall Quality0.2580.058Overall audio quality (0-3.7 scale)
Speech Quality0.2770.078Speech quality (0-3.9 scale)
  • Architecture: Linear(512→64)→LN→GELU→Dropout(0.1)→Linear(64→64)→LN→GELU→Dropout(0.1)→Linear(64→1)
  • Training: 50 epochs, Huber loss, AdamW (lr=1e-3), CosineAnnealingLR, batch_size=4096

Distortion Expert (Binary Clean vs. Distorted Classifier)

A lightweight binary classifier trained on top of the frozen majestrino encoder to discriminate clean speech from artificially degraded speech. The primary use case is as a fast quality filter for generated TTS output and for cleaning training corpora — it detects signal-level artifacts (clipping, comb-filtering) that the existing DNSMOS-based quality experts may not catch cleanly.

The expert outputs a single logit; apply sigmoid to get P(clean). For absolute quality filtering of natural speech, threshold at 0.5. For relative ranking of TTS-generated samples (which are out-of-distribution for the training set), rank by the raw logit — higher is better.

Training data: 100K clean/distorted pairs (200K total samples) built from laion/emolia-hq English standard-HQ tars. Each clean clip (8 seconds, 48 kHz mono) is paired with exactly one distorted twin. Three distortion families are applied in a deterministic...

Fuentes

1 fuente
Hugging FacePrincipalVersión 4da64bcd67604fbf26f85b59b14e683de46b8424
huggingface.co/laion/audio-audio-majestrino-with-emotion-and-quality-experts/tree/4da64bcd67604fbf26f85b59b14e683de46b8424

Verificado 5 nov

Download files

Artefactos del modelo

13 artefactos

attribute_probe.pt

pt · 3,43 MB · SHA-256 88717fbafd71…44c1 · Hugging Face

Download file

distortion_expert.pt

pt · 293 KB · SHA-256 255edc678d91…7ea2 · Hugging Face

Download file

emotion_expert_all53.pt

pt · 832 KB · SHA-256 3bc306a8595b…1eb4 · Hugging Face

Download file

emotion_expert_attr13.pt

pt · 240 KB · SHA-256 04e2f9145f14…4333 · Hugging Face

Download file

emotion_expert_emo40.pt

pt · 568 KB · SHA-256 0a3d9bda56fa…ca73 · Hugging Face

Download file

encoder.pt

pt · 328 MB · SHA-256 ac6bf0a5a266…d947 · Hugging Face

Download file

gte_to_ei_mlp_predictor.pt

pt · 930 KB · SHA-256 7e6e97a437a7…1d15 · Hugging Face

Download file

quality_expert_cps.pt

pt · 150 KB · SHA-256 8c2e17e4186e…38ac · Hugging Face

Download file

quality_expert_score_background_quality.pt

pt · 151 KB · SHA-256 338bbc1535dc…d4b6 · Hugging Face

Download file

quality_expert_score_content_enjoyment.pt

pt · 151 KB · SHA-256 5a6ffe5ccbfd…6ebd · Hugging Face

Download file

quality_expert_score_overall_quality.pt

pt · 151 KB · SHA-256 2db1b2a17373…320a · Hugging Face

Download file

quality_expert_score_speech_quality.pt

pt · 151 KB · SHA-256 9ca80e72b217…dc48 · Hugging Face

Download file

speaker_probe.pt

pt · 3,63 MB · SHA-256 f7c3f68b8b70…4bc6 · Hugging Face

Download file

Extractos de fuentes

2 extractos

--- license: apache-2.0 tags: - audio - emotion-recognition - speaker-embeddings - audio-quality - contrastive-learning - CLAP - DACVAE datasets: - TTS-AGI/maestrino-data-DACVAE - TTS-AGI/enhanced-audiosnippets-DACVAE - TTS-AGI/emotion-attribute-conditioning-dacvae - TTS-AGI/balanced-audio-snippets-40x3k-DACVAE - TTS-AGI/emolia-3k-speaker-clusters-DACVAE - TTS-AGI/balanced-audio-score-datasets-DACVAE - laion/emolia-hq language: - en pipeline_tag: audio-classification --- # Audio-Audio Majestrino with Emotion and Quality Experts A **ViT-Base audio encoder** trained via contrastive learning on 100 million DACVAE-encoded audio samples, paired with lightweight MLP expert heads for **emotion recognition**, **speaker embedding prediction**, and **audio quality assessment**. ## Overview This model operates in the [DACVAE](https://github.com/facebookresearch/dacvae) latent space rather than on raw waveforms. Audio is first encoded to DACVAE latents (25fps × 128-dim float vectors), then the ViT-Base encoder produces a 512-dimensional embedding. Specialized MLP heads predict various audio attributes from this embedding. ### Architecture ``` Raw Audio (48kHz) ↓ DACVAE Encoder (facebook/dacvae-watermarked) ↓ DACVAE Latents (T × 128, float16, 25fps) ↓ ViT-Base Encoder (86M params) - 1D patch embedding: Conv1d(128→768, kernel=5, stride=5) - 12 transformer layers (768-dim, 12 heads, 3072 MLP dim) - CLS token pooling → LayerNorm → Linear(768→512) → L2-normalize ↓ 512-dim Audio Embedding ↓ Expert MLP Heads: ├── Emotion Expert (144K params) → 40 emotion predictions (best) ├── Attribute Expert (60K params) → 13 non-emotion attribute predictions (best) ├── All-53 Expert (212K params) → 53 combined predictions (alternative) ├── Attribute Probe (898K params) → 53 emotion/speaker attributes + duration ├── Speaker Probe (950K params) → 128-dim timbre embedding ├── 5× Quality Experts (37K each) → individual quality scores └── Distortion Expert (74K params) → binary clean vs distorted (BCE) ``` ## Models Included | Model | File | Params | Description | |-------|------|--------|-------------| | ViT-Base Encoder | `encoder.pt` | 86M | Core audio encoder, produces 512-dim embeddings | | Emotion Expert (40) | `emotion_expert_emo40.pt` | 144K | Best for 40 emotion dimensions (MAE 0.345) | | Attribute Expert (13) | `emotion_expert_attr13.pt` | 60K |...

Source context: 0 downloads · 0 likes · Pipeline audio-classification · Repo laion/audio-audio-majestrino-with-emotion-and-quality-experts