# Repository Briefing: stepfun-ai/Step-Audio-EditX
> Source: https://repoforai.com/repo/stepfun-ai/Step-Audio-EditX (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/stepfun-ai/Step-Audio-EditX
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: Python
- **License**: Apache-2.0
- **Engineering Health**: C (46/100 · Maintenance 6/35 · Adoption 14/25 · Releases 6/20 · License 20/20)
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Docker, Self-Hosted, Local AI, CLI, GPU
- **Momentum**: 1,008 ★ total (+0 24h / +2 7d) · 80 forks
- **Topics**: `audio-editing`, `cross-lingual`, `emotion-control`, `paralinguistics`, `reinforcement-learning`, `speaking-style`, `style-control`, `text-to-speech`, `tts`, `voice-cloning`, `zero-shot-tts`
- **When to Use**: Best for: GPU-equipped dubbing, localization and audio post-production teams that use authorized reference voices and need repeatable control over short clips, pronunciation and delivery. Skip if: You need a managed API with no GPU operations, CPU-only deployment, or verified real-time streaming and long-form performance out of the box.

## Overview
```text
### Architecture & Core Mechanics
Step-Audio-EditX is a 3B-parameter, reinforcement-learning-based speech model packaged as downloadable weights and Python inference code. The workflow combines reference audio and its transcript with target text or an edit instruction. The audio pipeline uses a separately distributed Step-Audio-Tokenizer, the EditX model and a CosyVoice vocoder for waveform output.

`tts_infer.py` is the clip-oriented CLI; `app.py` exposes the Gradio interface and vLLM runtime options, with optional automatic transcription. The source tree separates model loading (`model_loader.py`), tokenization (`tokenizer.py`), TTS (`tts.py`) and vocoding (`stepvocoder/`). The manifest includes PyTorch, torchaudio, Transformers, vLLM and ONNX Runtime GPU. The concrete integration surfaces are the CLI and Gradio; there is no demonstrated plugin protocol or stable service API contract.

### Key Capabilities & Differentiators
Zero-shot TTS uses a reference clip to synthesize new text in the reference voice. The feature list names Mandarin, English, Sichuanese and Cantonese for cloning; a November 2025 checkpoint update added Japanese and Korean support, without establishing equal coverage across editing modes. Chinese polyphonic characters can be replaced with tone-numbered pinyin to select a reading.

The same model supports iterative edits to emotion and delivery, with examples such as fear and whispering. Inline tags such as `[Uhm]` specify where a nonverbal cue should occur; the January 2026 update added cues such as inhales, chuckles and throat clearing. CLI examples cover speed changes, and a demo shows denoising. Standard and AWQ 4-bit checkpoints are both downloadable. The model table lists a 41.6 Hz setting; that is not an output WAV sample-rate specification.

### Trade-offs & Limitations
Compared with a managed service such as ElevenLabs, EditX trades lower operational convenience for local control over reference clips, checkpoints and repeated edits. The published comparisons involve Minimax and Doubao, not a direct ElevenLabs evaluation. The recommendation to keep clips under 30 seconds also favors segmented dubbing and post-production: validate continuity across cuts, and do not treat the interactive demo as evidence of streaming support or real-time latency.

The batch-one sizing guidance puts the standard model near a 12 GB threshold, recommends 16 GB for headroom and estimates 12–15 GB at defaults. AWQ 4-bit is estimated at 8–10 GB; the tighter 6–8 GB profile combines quantization with settings such as `--max-num-seqs 1`, eager execution and disabled vocoder CUDA Graphs. That smaller footprint is not equivalent to default throughput or quality. Check peak memory, concurrency and edited audio quality on the exact checkpoint and hardware you plan to run.

### Hardware & Deployment Guide
Start on Linux with an NVIDIA CUDA GPU; the tested configuration uses one L40S. The project manifest requires Python 3.12 or 3.13 and PyTorch 2.9.1 or newer. The native path uses `uv sync --refresh`; download the EditX checkpoint and Step-Audio-Tokenizer separately from Hugging Face or ModelScope, then pass explicit paths for local inference. For a disconnected deployment, stage the dependencies and weights first rather than assuming the initial setup runs offline.

The Dockerfile starts from `nvidia/cuda:12.4.1-cudnn-runtime-ubuntu22.04`. The GPU-enabled run example mounts code at `/app`, weights at `/model` and maps port 7860 for the UI. Validate driver, image and dependency compatibility on the actual deployment host. The January 2026 update added model weights, announced vLLM training and inference support, and released SFT, DPO and GRPO code; PPO is still marked incomplete.
```

## Key Capabilities
```text
- Inference pipeline: A separately downloaded Step-Audio-Tokenizer, 3B EditX checkpoint and CosyVoice vocoder form the audio inference stack.
- Editing controls: CLI modes cover cloning, emotion, paralinguistics and speed; demos also cover speaking-style edits and denoising.
- Pronunciation: Tone-numbered pinyin overrides the reading of individual Chinese polyphonic characters.
- VRAM controls: Prequantized AWQ 4-bit weights, vLLM sequence and cache settings, and separate CUDA Graph controls for the vocoder.
- Self-hosted interfaces: `tts_infer.py` for clip jobs and `app.py` for Gradio, with a CUDA Docker setup that mounts code and weights separately.
- Training status: SFT, DPO and GRPO code was released in January 2026; PPO remains unchecked in the release plan.
```

## Quick Start / Clone
```bash
git clone https://github.com/stepfun-ai/Step-Audio-EditX.git

cd Step-Audio-EditX
uv sync --refresh
source .venv/bin/activate

git lfs install
git clone https://huggingface.co/stepfun-ai/Step-Audio-Tokenizer
git clone https://huggingface.co/stepfun-ai/Step-Audio-EditX
git clone https://huggingface.co/stepfun-ai/Step-Audio-EditX-AWQ-4bit/
```
