# qwen3\_tts\_rs

> Rust-based inference CLI and API server for Qwen3 TTS with voice cloning

qwen3\_tts\_rs is a native Rust implementation for Qwen3 text-to-speech model inference. It packages TTS, voice cloning, and an OpenAI-compatible audio API server into standalone CLI binaries without requiring a Python runtime. It supports hardware acceleration using Apple Silicon MLX via Metal GPU as well as libtorch with NVIDIA CUDA.

Website: https://github.com/second-state/qwen3_tts_rs

## What it is for

- Synthesize speech locally from text using CLI commands or agent workflows
- Clone target voices from short reference audio clips using the Qwen3 base model
- Host a local OpenAI-compatible /v1/audio/speech server for AI agents
- Integrate voice generation skills into autonomous agent frameworks like OpenClaw

## Features

- Self-contained binary builds without Python runtime dependencies
- Apple Silicon acceleration via native MLX and Metal GPU
- Linux and NVIDIA CUDA acceleration via libtorch
- Voice cloning mode using reference audio and transcript prompts
- Predefined named speaker voices including Vivian, Serena, and Ryan
- Voice style and emotion control via natural language instructions on supported models
- OpenAI-compatible HTTP API server (/v1/audio/speech)
- Audio encoding support across multiple formats including WAV, MP3, FLAC, and OGG Opus

## Pricing

Open source

## Details

- Type: GitHub repo
- Category: [AI](https://xiry.app/topics/ai.md)
- Topic: [Text to Speech](https://xiry.app/topics/ai/text-to-speech.md)
- Open source: yes
- Platforms: Command line, Linux, macOS, API, Self-hosted
- For: Developers and AI engineers running local text-to-speech and voice cloning pipelines for bots and agents.
- Alternative to: ElevenLabs, ChatTTS, Bark, Piper
- Tags: tts, rust, voice cloning, speech synthesis, mlx, cuda, ai agents

## Why it was saved

- [@juntao, 2 March 2026](https://x.com/juntao/status/2028327450480935147): No external dependencies, cross-platform GPU acceleration (libtorch + NVIDIA on Linux, MLX + Apple GPU/NPU on macOS), voice cloning from 3-second clips, and voice instructions for emotion/style. Designed as a CLI for AI agents and humans.

## Compare

- [Alternatives to ElevenLabs](https://xiry.app/alternatives/elevenlabs.md)
- [Alternatives to Bark](https://xiry.app/alternatives/bark.md)

## Related

- [ElevenLabs](https://xiry.app/resources/elevenlabs): AI voice generator, voice cloning, and conversational agent platform (Web app, Freemium)
- [Cartesia Sonic](https://xiry.app/resources/cartesia-sonic): Ultra-low-latency streaming text-to-speech and instant voice cloning model. (AI model, Freemium)
- [Dia](https://xiry.app/resources/dia): Open-source 1.6B text-to-speech model generating multi-speaker dialogue in one pass. (AI model, Open source)
- [Airy](https://xiry.app/resources/airy): Fast, low-cost text-to-speech API and studio for creators and developers (AI model, Freemium)
- [AudioPen](https://xiry.app/resources/audiopen): Converts spoken thoughts into structured, polished writing in customizable styles. (Web app, Freemium)
- [cartesia-python](https://xiry.app/resources/cartesia-python): Official Python library for Cartesia's real-time text-to-speech API (GitHub repo, Paid)

Updated 10 October 2026. Page: https://xiry.app/resources/qwen3-tts-rs

Make your own library: Xiry takes your saved reels, tweets, Reddit bookmarks and Watch Later videos, makes them searchable and pulls the useful stuff out, like this library. It's invite-only for now; join the waitlist at https://xiry.app/#waitlist.
