Model reference · open weights

MioCodec-25Hz-24kHz

Available as managed deployment Audio Aratako · community Audio→audio 1 variants 14k dl/mo

MioCodec-25Hz-24kHz is an open-weight audio or speech model from Aratako. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.

Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.

What it is

MakerAratako
TypeAudio & music
TaskAudio→audio
Parameters (lead)131M
Released2026-02-03
Popularity14k downloads / month
LicenceOpen weights

About

What MioCodec-25Hz-24kHz is

MioCodec-25Hz-24kHz is a lightweight and fast neural audio codec designed for efficient spoken language modeling. Based on the Kanade-Tokenizer implementation, this model features an integrated wave decoder (iSTFTHead) that directly synthesizes waveforms without requiring an external vocoder.

For higher audio fidelity at 44.1 kHz, see MioCodec-25Hz-44.1kHz.

🌟 Overview

MioCodec decomposes speech into two distinct components:

  1. Content Tokens: Discrete representations that primarily capture linguistic information and phonetic content ("what" is being said) at a low frame rate (25 Hz).
  2. Global Embeddings: A continuous vector representing broad acoustic characteristics ("how")—including speaker identity, recording environment, and microphone traits.

By disentangling these elements, MioCodec is ideal for Spoken Language Modeling.

Key features

  • Lightweight & Fast: Integrated wave decoder (iSTFTHead) enables direct waveform synthesis without an external vocoder.
  • Ultra-Low Bitrate: Achieves high-fidelity reconstruction at only 341 bps.
  • End-to-End Design: Single model architecture from audio input to waveform output.

📊 Model Comparison

ModelToken RateVocab SizeBit RateSample RateSSL EncoderVocoderParametersHighlights
MioCodec-25Hz-24kHz25 Hz12,800341 bps24 kHzWavLM-base+- (iSTFTHead)132MLightweight, fast inference
MioCodec-25Hz-44.1kHz25 Hz12,800341 bps44.1 kHzWavLM-base+MioVocoder (Jointly Tuned)118M (w/o vocoder)High-quality, high sample rate
kanade-25hz25 Hz12,800341 bps24 kHzWavLM-base+Vocos 24kHz118M (w/o vocoder)Original 25Hz model
kanade-12.5hz12.5 Hz12,800171 bps24 kHzWavLM-base+Vocos 24kHz120M (w/o vocoder)Original 12.5Hz model

🚀 Quick Start

Installation

# Install via pip
pip install git+https://github.com/Aratako/MioCodec

# Or using uv
uv add git+https://github.com/Aratako/MioCodec

Basic Inference

Basic usage for encoding and decoding audio:

from miocodec import MioCodecModel, load_audio
import soundfile as sf

# 1. Load model
model = MioCodecModel.from_pretrained("Aratako/MioCodec-25Hz-24kHz").eval().cuda()

# 2. Load audio
waveform = load_audio("input.wav", sample_rate=model.config.sample_rate).cuda()

# 3. Encode Audio
features = model.encode(waveform)

# 4. Decode to Waveform (directly, no vocoder needed)
resynth = model.decode(
    content_token_indices=features.content_token_indices,
    global_embedding=features.global_embedding,
)

# 5. Save
sf.write("output.wav", resynth.cpu().numpy(), model.config.sample_rate)

Voice Conversion (Zero-shot)

MioCodec allows you to swap speaker identities by combining the content tokens of a source with the global embedding of a reference.

source = load_audio("source_content.wav", sample_rate=model.config.sample_rate).cuda()
reference = load_audio("target_speaker.wav", sample_rate=model.config.sample_rate).cuda()

# Perform conversion
vc_wave = model.voice_conversion(source, reference)
sf.write("converted.wav", vc_wave.cpu().numpy(), model.config.sample_rate)

🏗️ Training Methodology

MioCodec-25Hz-24kHz was trained in two phases with an integrated wave decoder that directly synthesizes waveforms via iSTFT.

Phase 1: Feature Alignment

The model is trained to minimize both Multi-Resolution Mel-spectrogram loss and SSL feature reconstruction loss (using WavLM-base+). The wave decoder directly generates waveforms, and losses are computed on the reconstructed audio.

  • Multi-Resolution Mel Spectrogram Loss: Using window lengths of [32, 64, 128, 256, 512, 1024, 2048].
  • SSL Feature Reconstruction Loss: Using WavLM-base+ features.

Phase 2: Adversarial Refinement

Building upon Phase 1, adversarial training is introduced to improve perceptual quality. The training objectives include:

  • Multi-Resolution Mel Spectrogram Loss: Using window lengths of [32, 64, 128, 256, 512, 1024, 2048].
  • SSL Feature Reconstruction Loss: Using WavLM-base+ features.
  • Multi-Period Discriminator (MPD): Using periods of [2, 3, 5, 7, 11, 17, 23].
  • Multi-Scale STFT Discriminator (MS-STFTD): Using FFT sizes of [118, 190, 310, 502, 814, 1314, 2128, 3444].
  • RMS Loss: To stabilize energy and volume.

📚 Training Data

The training datasets are listed below:

LanguageApprox. HoursDataset
Japanese~22,500hVarious public HF datasets
English~500hLibriheavy-HQ
English~4,000hMLS-Sidon
English~9,000hHiFiTTS-2
English~27,000hEmilia-YODAS
German~1,950hMLS-Sidon
German~5,600hEmilia-YODAS
Dutch~1,550hMLS-Sidon
French~1,050hMLS-Sidon
French~7,400hEmilia-YODAS
Spanish~900hMLS-Sidon
Italian~240hMLS-Sidon
Portuguese~160h[MLS-Sidon](ht

From the published model card. Full card on the HuggingFace links in the sidebar.

How it works

How audio & music work

Audio or textinputAudio modelrecognise / synthesiseText or audiooutputSpeech-to-text turns audio into text; text-to-speech and music models turn text into audio.

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys miocodec-25hz-24khz for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (miocodec-25hz-24khz below is illustrative; you get the exact model name on deployment.)

$ curl -sS https://api.axforge.ai/v1/audio/transcriptions \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -F model="miocodec-25hz-24khz" -F file=@audio.mp3

Create an account — your API key is available in the console. 5M tokens/month currently included with every new account at launch.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms