emotion2vec: Self-Supervised Pre-Training for Speech Emotion Representation
Paper โข 2312.15185 โข Published
How to use mlx-community/emotion2vec-plus-large-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir emotion2vec-plus-large-mlx mlx-community/emotion2vec-plus-large-mlx
The emotion2vec+ large speech-emotion-recognition model converted to MLX format for native
inference on Apple Silicon, consumed by the xocialize/emotion2vec-mlx-swift
Swift port. Refer to the original model card
for details.
angry, disgusted, fearful, happy, neutral, other, sad, surprised, unknown)emotion2vec_large.safetensors โ the MLX weights (fp16).emotion2vec_large_config.json โ model config consumed by the loader.import Emotion2VecMLX
import Hub
let dir = try await HubApi().snapshot(from: "mlx-community/emotion2vec-plus-large-mlx")
let recogniser = try await EmotionRecogniser(weightsDirectory: dir,
config: EmotionRecogniserConfig(models: .categorical))
let result = try await recogniser.classify(audioURL: speechURL)
print(result.categorical.label, result.categorical.confidence)
FunASR's custom MODEL_LICENSE โ permits use, copy, modification, and redistribution with attribution and model-name retention (no-denigration clause, no warranty). Non-SPDX but permissive. See the original license.
Quantized
Base model
emotion2vec/emotion2vec_plus_large