Step-Audio: The First Production-Ready Open-Source Framework for Intelligent Speech Interaction

Step-Audio: The First Production-Ready Open-Source Framework for Intelligent Speech Interaction

Today, a brand new recreation changer ai improvement is created by Chinese Ai Geeks. This is Step-Audio, transferring ai speaking to the subsequent and extra practical stage which isn’t earlier than.

Let’s dive in…

Step-Audio is an open-source framework designed to unify speech comprehension and era. It helps multilingual conversations, emotional tones, regional dialects, adjustable speech charges, and numerous prosodic types, making it a sophisticated software for speech-based AI purposes.

Developed as an clever speech interplay system, Step-Audio boasts a 130B-parameter multimodal mannequin that integrates speech recognition, semantic understanding, dialogue, voice cloning, and speech synthesis. The mannequin is accessible through Hugging Face and Modelscope repositories, making it straightforward for builders and researchers to make use of.

Key Features and Innovations

1. 130B-Parameter Multimodal Model

Step-Audio combines comprehension and era capabilities in a single, unified mannequin. It helps:

  • Speech Recognition
  • Semantic Understanding
  • Dialogue Handling
  • Voice Cloning
  • Speech Synthesis

2. Generative Data Engine

Step-Audio eliminates the guide knowledge assortment required in conventional text-to-speech (TTS) techniques. Instead, it makes use of AI-driven generative knowledge to reinforce coaching high quality, resulting in the discharge of the environment friendly Step-Audio-TTS-3B mannequin.

3. Granular Voice Control

Users can fine-tune generated speech with instruction-based controls, adjusting:

  • Emotional tones (e.g., anger, pleasure, disappointment)
  • Dialects (e.g., Cantonese, Sichuanese)
  • Vocal types (e.g., rap, a cappella buzzing)

4. Enhanced Intelligence

Step-Audio makes use of ToolCall mechanisms and role-playing capabilities to enhance efficiency in complicated conversational eventualities.

Model Overview

Tokenization Strategy

Step-Audio employs a dual-codebook framework with semantic and acoustic tokenizers:

  • Semantic tokens: 16.7Hz, 1024-entry codebook
  • Acoustic tokens: 25Hz, 4096-entry codebook
  • Temporal alignment: 2:3 ratio (2 semantic tokens per 3 acoustic tokens)

Language Model

  • Based on Step-1, a 130-billion parameter LLM, additional enhanced with audio-contextualized pretraining and task-specific post-training.

Speech Decoder

The decoder converts discrete speech tokens into steady waveforms utilizing:

  • Flow Matching
  • Neural Vocoding

The dual-code interleaving strategy ensures easy integration of semantic and acoustic options.

Real-time Inference Pipeline

Step-Audio optimizes real-time interactions utilizing:

  • Voice Activity Detection (VAD)
  • Streaming Audio Tokenizer
  • Step-Audio Language Model & Speech Decoder
  • Context Manager for preserving conversational continuity

The pipeline reduces latency and ensures environment friendly processing.

Installation and Setup

1. System Requirements

  • GPU: Minimum 1.5GB VRAM, beneficial 4x A800/H800 GPUs (80GB)
  • Operating System: Linux
  • Python: 3.10+
  • PyTorch: 2.3+ with CUDA

2. Installation Steps

# Clone the repository
git clone https://github.com/stepfun-ai/Step-Audio.git
cd Step-Audio

# Create a digital setting
conda create -n stepaudio python=3.10
conda activate stepaudio

# Install dependencies
pip set up -r necessities.txt

# Clone crucial mannequin recordsdata
git lfs set up
git clone https://huggingface.co/stepfun-ai/Step-Audio-Tokenizer
git clone https://huggingface.co/stepfun-ai/Step-Audio-Chat
git clone https://huggingface.co/stepfun-ai/Step-Audio-TTS-3B

Once downloaded, the listing construction ought to be:

where_you_download_dir
├── Step-Audio-Tokenizer
├── Step-Audio-Chat
├── Step-Audio-TTS-3B

Model Usage and Inference

Offline Inference

To generate textual content/audio outputs from audio/textual content inputs:

python offline_inference.py --model-path where_you_download_dir

TTS Inference (Text-to-Speech)

python tts_inference.py --model-path where_you_download_dir --output-path where_you_save_audio_dir --synthesis-type use_tts_or_clone

For voice cloning, a speaker data dictionary is required:

{
"speaker": "speaker id",
"prompt_text": "content material of immediate wav",
"wav_path": "immediate wav path"
}

Launching a Web Demo

For an interactive expertise, begin a native net server:

python app.py --model-path where_you_download_dir

Benchmark Performance

Step-Audio demonstrates aggressive efficiency throughout computerized speech recognition (ASR), text-to-speech (TTS), and conversational AI benchmarks.

ASR (Automatic Speech Recognition) Performance

Compared with Whisper Large-v3, Qwen2-Audio, MinMo, LUCY, Moshi, and GLM-4-Voice, Step-Audio achieves superior ASR outcomes in:

  • Aishell-1
  • Aishell-2
  • Wenetspeech
  • Librispeech

TTS Performance

Step-Audio-TTS-3B demonstrates best-in-class CER/WER scores, outperforming:

  • FireRedTTS
  • MaskGCT
  • CosyVoice
  • CosyVoice 2

Voice Chat Capabilities

On StepEval-Audio-360, a multi-turn benchmark, Step-Audio outperforms:

  • GLM-4-Voice
  • Qwen2-Audio
  • Moshi
  • LUCY

Scoring larger in factuality, relevance, and chat expertise, it additionally excels in role-playing, creativity, and emotional management.

Example Use Cases

1. Voice Cloning

Step-Audio replicates speaker-specific voice options, as seen within the following examples:
| Speaker | Prompt Audio | Cloned Audio |
|———|————-|————-|
| 于谦 | Google Drive | Google Drive |
| 李雪琴 | Google Drive | Google Drive |

2. Speech Speed Control

Adjustable speech charge instance:
| Prompt | Response |
|——–|———|
| Fast Mode: "Say a tongue tornado." | Listen |
| Slow Mode: "Say it once more very, very slowly." | Listen |

3. Emotional and Tone Control

Step-Audio modifies emotional tone dynamically, e.g.:
| Prompt | Response |
|——–|———|
| "You sound robotic. Try being extra expressive!" | Listen |

4. Multilingual Capabilities

Step-Audio helps Chinese, English, and Japanese, e.g.:
| Prompt | Response |
|——–|———|
| "What does ‘raining cats and canine’ imply?" | Listen |

5. Rap and Singing

Step-Audio can generate music, e.g.:
| Prompt | Response |
|——–|———|
| "Sing a rap tune!" | Listen |

Final Words…

Step-Audio is a highly effective and versatile speech AI framework that units a brand new normal for open-source speech comprehension, era, and interplay. With strong ASR, TTS, and voice chat capabilities, it’s an best alternative for builders and researchers trying to combine cutting-edge speech AI into their purposes.

For additional particulars, go to the GitHub Repository or Hugging Face Model Page.

HI-FI News

through DEV Community https://dev.to

February 18, 2025 at 01:16AM