> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/QwenLM/Qwen3-TTS/llms.txt
> Use this file to discover all available pages before exploring further.

# Qwen3-TTS Documentation

<div className="relative overflow-hidden bg-gradient-to-br from-[#6366f1] via-[#4f46e5] to-[#4338ca] dark:from-[#4f46e5] dark:via-[#4338ca] dark:to-[#3730a3]">
  <div className="absolute inset-0 bg-black/20" />

  <div className="relative py-20 px-6 max-w-7xl mx-auto">
    <div className="grid lg:grid-cols-12 gap-12 items-center">
      <div className="lg:col-span-7">
        <h1 className="text-5xl lg:text-6xl font-bold text-white mb-6">
          Qwen3-TTS Documentation
        </h1>

        <p className="text-xl text-white/90 max-w-2xl mb-8">
          A powerful Python SDK for text-to-speech generation with voice cloning, voice design, and ultra-low latency streaming supporting 10 major languages.
        </p>

        <div className="flex flex-wrap gap-4">
          <a href="/quickstart" className="inline-flex items-center px-6 py-3 rounded-lg bg-white text-[#6366f1] font-semibold hover:bg-gray-100 transition-colors no-underline">
            Get Started

            <svg className="ml-2 w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M13 7l5 5m0 0l-5 5m5-5H6" />
            </svg>
          </a>

          <a href="/api/model/overview" className="inline-flex items-center px-6 py-3 rounded-lg border-2 border-white/30 bg-white/10 text-white font-semibold hover:bg-white/20 transition-colors no-underline">
            API Reference
          </a>
        </div>
      </div>

      <div className="lg:col-span-5 hidden lg:block">
        <div className="relative">
          <div className="absolute inset-0 bg-gradient-to-r from-[#818cf8] to-[#6366f1] rounded-2xl blur-3xl opacity-30" />

          <div className="relative bg-white/10 backdrop-blur-sm border border-white/20 rounded-2xl p-6">
            <div className="space-y-3">
              <div className="h-3 bg-white/30 rounded w-3/4" />

              <div className="h-3 bg-white/20 rounded w-full" />

              <div className="h-3 bg-white/20 rounded w-5/6" />

              <div className="mt-6 flex items-center gap-3">
                <div className="w-10 h-10 bg-white/20 rounded-full" />

                <div className="flex-1">
                  <div className="h-2 bg-white/30 rounded w-24 mb-2" />

                  <div className="h-2 bg-white/20 rounded w-32" />
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<div className="mt-16 mb-16 max-w-5xl mx-auto px-6">
  <h2 className="text-3xl font-bold text-gray-900 dark:text-white mb-4">Quick Start</h2>

  <p className="text-lg text-gray-600 dark:text-gray-400 mb-8">
    Get up and running with Qwen3-TTS in minutes
  </p>

  <Steps>
    <Step title="Install the package">
      Install Qwen3-TTS using pip in a fresh Python environment:

      ```bash theme={null}
      pip install -U qwen-tts
      ```

      <Note>We recommend using Python 3.12 with a clean conda or virtual environment to avoid dependency conflicts.</Note>
    </Step>

    <Step title="Load a model">
      Import and initialize a Qwen3-TTS model:

      ```python theme={null}
      import torch
      from qwen_tts import Qwen3TTSModel

      model = Qwen3TTSModel.from_pretrained(
          "Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice",
          device_map="cuda:0",
          dtype=torch.bfloat16,
      )
      ```
    </Step>

    <Step title="Generate speech">
      Generate natural-sounding speech from text:

      ```python theme={null}
      import soundfile as sf

      wavs, sr = model.generate_custom_voice(
          text="Hello, welcome to Qwen3-TTS!",
          language="English",
          speaker="Ryan",
      )

      sf.write("output.wav", wavs[0], sr)
      ```

      <Tip>The model automatically downloads from Hugging Face on first use. For offline environments, see the [Installation](/installation) guide.</Tip>
    </Step>
  </Steps>
</div>

<div className="mt-16 mb-16 max-w-5xl mx-auto px-6">
  <h2 className="text-3xl font-bold text-gray-900 dark:text-white mb-4">Explore by Feature</h2>

  <p className="text-lg text-gray-600 dark:text-gray-400 mb-8">
    Discover what you can build with Qwen3-TTS
  </p>

  <CardGroup cols={3}>
    <Card title="Custom Voice" icon="microphone" href="/guides/custom-voice">
      Generate speech with 9 premium preset voices covering multiple languages and dialects
    </Card>

    <Card title="Voice Design" icon="wand-magic-sparkles" href="/guides/voice-design">
      Create custom voices from natural language descriptions with instruction-based control
    </Card>

    <Card title="Voice Cloning" icon="clone" href="/guides/voice-cloning">
      Clone any voice in just 3 seconds from a reference audio sample
    </Card>

    <Card title="Streaming" icon="tower-broadcast" href="/guides/streaming">
      Ultra-low latency streaming with 97ms end-to-end synthesis for real-time interactions
    </Card>

    <Card title="Batch Processing" icon="layer-group" href="/guides/batch-processing">
      Process multiple text inputs efficiently with batched inference
    </Card>

    <Card title="Fine-tuning" icon="screwdriver-wrench" href="/advanced/fine-tuning">
      Customize models for your specific use case with fine-tuning
    </Card>
  </CardGroup>
</div>

<div className="mt-16 mb-16 max-w-5xl mx-auto px-6">
  <h2 className="text-3xl font-bold text-gray-900 dark:text-white mb-4">Key Features</h2>

  <p className="text-lg text-gray-600 dark:text-gray-400 mb-8">
    What makes Qwen3-TTS powerful
  </p>

  <div className="grid md:grid-cols-2 gap-6">
    <div className="border border-gray-200 dark:border-[#27272a] rounded-xl p-6 bg-white dark:bg-[#1a1d27]">
      <div className="w-12 h-12 rounded-lg bg-[#6366f1]/10 dark:bg-[#6366f1]/20 flex items-center justify-center mb-4">
        <svg className="w-6 h-6 text-[#6366f1]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M3.055 11H5a2 2 0 012 2v1a2 2 0 002 2 2 2 0 012 2v2.945M8 3.935V5.5A2.5 2.5 0 0010.5 8h.5a2 2 0 012 2 2 2 0 104 0 2 2 0 012-2h1.064M15 20.488V18a2 2 0 012-2h3.064M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
        </svg>
      </div>

      <h3 className="text-xl font-semibold text-gray-900 dark:text-white mb-2">10 Languages</h3>

      <p className="text-gray-600 dark:text-gray-400">
        Support for Chinese, English, Japanese, Korean, German, French, Russian, Portuguese, Spanish, and Italian with multilingual and cross-lingual capabilities.
      </p>
    </div>

    <div className="border border-gray-200 dark:border-[#27272a] rounded-xl p-6 bg-white dark:bg-[#1a1d27]">
      <div className="w-12 h-12 rounded-lg bg-[#6366f1]/10 dark:bg-[#6366f1]/20 flex items-center justify-center mb-4">
        <svg className="w-6 h-6 text-[#6366f1]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M13 10V3L4 14h7v7l9-11h-7z" />
        </svg>
      </div>

      <h3 className="text-xl font-semibold text-gray-900 dark:text-white mb-2">Ultra-Low Latency</h3>

      <p className="text-gray-600 dark:text-gray-400">
        Achieve 97ms end-to-end synthesis latency with streaming generation, perfect for real-time interactive applications.
      </p>
    </div>

    <div className="border border-gray-200 dark:border-[#27272a] rounded-xl p-6 bg-white dark:bg-[#1a1d27]">
      <div className="w-12 h-12 rounded-lg bg-[#6366f1]/10 dark:bg-[#6366f1]/20 flex items-center justify-center mb-4">
        <svg className="w-6 h-6 text-[#6366f1]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" />
        </svg>
      </div>

      <h3 className="text-xl font-semibold text-gray-900 dark:text-white mb-2">High Quality</h3>

      <p className="text-gray-600 dark:text-gray-400">
        Powered by Qwen3-TTS-Tokenizer-12Hz for efficient acoustic compression and high-fidelity speech reconstruction.
      </p>
    </div>

    <div className="border border-gray-200 dark:border-[#27272a] rounded-xl p-6 bg-white dark:bg-[#1a1d27]">
      <div className="w-12 h-12 rounded-lg bg-[#6366f1]/10 dark:bg-[#6366f1]/20 flex items-center justify-center mb-4">
        <svg className="w-6 h-6 text-[#6366f1]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z" />
        </svg>
      </div>

      <h3 className="text-xl font-semibold text-gray-900 dark:text-white mb-2">Instruction Control</h3>

      <p className="text-gray-600 dark:text-gray-400">
        Control voice characteristics, emotion, and prosody using natural language instructions for expressive speech output.
      </p>
    </div>
  </div>
</div>

<div className="mt-16 mb-16 max-w-5xl mx-auto px-6">
  <h2 className="text-3xl font-bold text-gray-900 dark:text-white mb-4">Resources</h2>

  <p className="text-lg text-gray-600 dark:text-gray-400 mb-8">
    Learn more about Qwen3-TTS
  </p>

  <div className="grid md:grid-cols-2 gap-4">
    <a href="https://github.com/QwenLM/Qwen3-TTS" className="group block p-6 border border-gray-200 dark:border-[#27272a] rounded-xl bg-white dark:bg-[#1a1d27] hover:border-[#6366f1] dark:hover:border-[#6366f1] transition-colors no-underline">
      <div className="flex items-start gap-4">
        <div className="w-10 h-10 rounded-lg bg-gray-100 dark:bg-[#242838] flex items-center justify-center flex-shrink-0">
          <svg className="w-5 h-5 text-gray-900 dark:text-white" fill="currentColor" viewBox="0 0 24 24">
            <path fillRule="evenodd" d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z" clipRule="evenodd" />
          </svg>
        </div>

        <div className="flex-1">
          <h3 className="text-base font-semibold text-gray-900 dark:text-white mb-1">GitHub Repository</h3>
          <p className="text-sm text-gray-600 dark:text-gray-400">View source code, report issues, and contribute to the project</p>

          <div className="mt-3 flex items-center text-sm text-[#6366f1] group-hover:text-[#4f46e5]">
            Visit repository

            <svg className="ml-1 w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
            </svg>
          </div>
        </div>
      </div>
    </a>

    <a href="https://arxiv.org/abs/2601.15621" className="group block p-6 border border-gray-200 dark:border-[#27272a] rounded-xl bg-white dark:bg-[#1a1d27] hover:border-[#6366f1] dark:hover:border-[#6366f1] transition-colors no-underline">
      <div className="flex items-start gap-4">
        <div className="w-10 h-10 rounded-lg bg-gray-100 dark:bg-[#242838] flex items-center justify-center flex-shrink-0">
          <svg className="w-5 h-5 text-gray-900 dark:text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
          </svg>
        </div>

        <div className="flex-1">
          <h3 className="text-base font-semibold text-gray-900 dark:text-white mb-1">Research Paper</h3>
          <p className="text-sm text-gray-600 dark:text-gray-400">Read the technical paper on arXiv for architecture details and benchmarks</p>

          <div className="mt-3 flex items-center text-sm text-[#6366f1] group-hover:text-[#4f46e5]">
            Read paper

            <svg className="ml-1 w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
            </svg>
          </div>
        </div>
      </div>
    </a>

    <a href="/resources/examples" className="group block p-6 border border-gray-200 dark:border-[#27272a] rounded-xl bg-white dark:bg-[#1a1d27] hover:border-[#6366f1] dark:hover:border-[#6366f1] transition-colors no-underline">
      <div className="flex items-start gap-4">
        <div className="w-10 h-10 rounded-lg bg-gray-100 dark:bg-[#242838] flex items-center justify-center flex-shrink-0">
          <svg className="w-5 h-5 text-gray-900 dark:text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4" />
          </svg>
        </div>

        <div className="flex-1">
          <h3 className="text-base font-semibold text-gray-900 dark:text-white mb-1">Code Examples</h3>
          <p className="text-sm text-gray-600 dark:text-gray-400">Explore complete examples for common use cases and workflows</p>

          <div className="mt-3 flex items-center text-sm text-[#6366f1] group-hover:text-[#4f46e5]">
            Browse examples

            <svg className="ml-1 w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
            </svg>
          </div>
        </div>
      </div>
    </a>

    <a href="/resources/benchmarks" className="group block p-6 border border-gray-200 dark:border-[#27272a] rounded-xl bg-white dark:bg-[#1a1d27] hover:border-[#6366f1] dark:hover:border-[#6366f1] transition-colors no-underline">
      <div className="flex items-start gap-4">
        <div className="w-10 h-10 rounded-lg bg-gray-100 dark:bg-[#242838] flex items-center justify-center flex-shrink-0">
          <svg className="w-5 h-5 text-gray-900 dark:text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" />
          </svg>
        </div>

        <div className="flex-1">
          <h3 className="text-base font-semibold text-gray-900 dark:text-white mb-1">Benchmarks</h3>
          <p className="text-sm text-gray-600 dark:text-gray-400">Compare performance metrics across different models and datasets</p>

          <div className="mt-3 flex items-center text-sm text-[#6366f1] group-hover:text-[#4f46e5]">
            View benchmarks

            <svg className="ml-1 w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
            </svg>
          </div>
        </div>
      </div>
    </a>
  </div>
</div>

<div className="mt-20 mb-16 max-w-5xl mx-auto px-6">
  <div className="relative overflow-hidden rounded-2xl bg-gradient-to-r from-[#6366f1] to-[#4f46e5] dark:from-[#4f46e5] dark:to-[#4338ca] p-12">
    <div className="relative z-10 text-center">
      <h2 className="text-3xl font-bold text-white mb-4">Ready to get started?</h2>

      <p className="text-xl text-white/90 mb-8 max-w-2xl mx-auto">
        Install Qwen3-TTS and generate high-quality speech in minutes
      </p>

      <a href="/quickstart" className="inline-flex items-center px-8 py-4 rounded-lg bg-white text-[#6366f1] font-semibold hover:bg-gray-100 transition-colors no-underline text-lg">
        Get Started Now

        <svg className="ml-2 w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M13 7l5 5m0 0l-5 5m5-5H6" />
        </svg>
      </a>
    </div>

    <div className="absolute top-0 right-0 -mt-20 -mr-20 w-64 h-64 bg-white/10 rounded-full blur-3xl" />

    <div className="absolute bottom-0 left-0 -mb-20 -ml-20 w-64 h-64 bg-white/10 rounded-full blur-3xl" />
  </div>
</div>
