█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

IndexTTS

zero-shot text-to-speech, वॉइस क्लोनिंग और स्वतंत्र emotion control के साथ

Audio, Music & Voiceओपन सोर्स
भाषा
Python
संक्षेप में

IndexTTS क्या है?

IndexTTS zero-shot text-to-speech, वॉइस क्लोनिंग और स्वतंत्र emotion control के साथ. यह Multimodal Generation टूल्स की Audio, Music & Voice श्रेणी में आता है; ओपन सोर्स है और Python में लिखा गया है। शुरू करने के लिए: repository clone करें.

सारांश

IndexTTS2 bilibili की Index team का एक text-to-speech मॉडल है। आप इसे किसी आवाज़ का एक छोटा reference clip और कुछ टेक्स्ट देते हैं, और यह उस टेक्स्ट को क्लोन की गई आवाज़ में बोलता है, बिना किसी per-speaker training के (zero-shot)। यह Python package के रूप में चलता है और इसके weights Hugging Face और ModelScope पर उपलब्ध हैं।

यह मॉडल उन developers के लिए बनाया गया है जिन्हें expressive और controllable speech चाहिए। यह speaker की पहचान को emotion से अलग रखता है, इसलिए आप एक व्यक्ति की timbre बनाए रख सकते हैं और अलग style prompt से emotional tone बदल सकते हैं। इसमें एक duration-control mode भी है, जो generated tokens की संख्या तय कर सकता है। यह तब काम आता है जब speech को video के साथ मेल खाना हो।

Speech और audio के क्षेत्र में IndexTTS2 दूसरे autoregressive zero-shot TTS सिस्टम्स के साथ आता है। यह उन मामलों के लिए है जहाँ word accuracy, speaker similarity और emotional fidelity, तीनों मायने रखते हैं, जैसे dubbing और voiceover का काम।

यह क्या करता है

  • एक ही छोटे reference audio clip से zero-shot voice cloning
  • अलग speaker और style prompts के जरिए timbre और emotion पर स्वतंत्र नियंत्रण
  • दो duration modes: सटीक token-count नियंत्रण, या prompt की prosody के अनुसार free autoregressive generation
  • नैचुरल-लैंग्वेज टेक्स्ट विवरणों के जरिए soft emotion control
  • Hugging Face और ModelScope पर वितरित pre-trained weights
  • Python inference API (indextts.infer_v2.IndexTTS2) जिसमें वैकल्पिक FP16, CUDA kernel और DeepSpeed flags हैं

शुरू करें

IndexTTS2 एक Python प्रोजेक्ट है। आप repo clone करते हैं, uv से dependencies इंस्टॉल करते हैं, model weights डाउनलोड करते हैं, फिर inference API को कॉल करते हैं। पहले सुनिश्चित करें कि git और git-lfs इंस्टॉल हों।

Repository clone करें

Repo clone करें और git-lfs से ट्रैक की गई बड़ी फ़ाइलें पुल करें।

bashbash
git clone https://github.com/index-tts/index-tts.git && cd index-tts
git lfs pull

Dependencies इंस्टॉल करें

प्रोजेक्ट अपना environment मैनेज करने के लिए uv का इस्तेमाल करता है। सभी extras इंस्टॉल करें।

bashbash
uv sync --all-extras

Model weights डाउनलोड करें

IndexTTS-2 checkpoints को Hugging Face से एक लोकल checkpoints फ़ोल्डर में डाउनलोड करें।

bashbash
uv tool install "huggingface-hub[cli,hf_xet]"
hf download IndexTeam/IndexTTS-2 --local-dir=checkpoints

Python में speech synthesize करें

checkpoints directory से model लोड करें और एक reference voice clip के साथ अपना टेक्स्ट पास करें। क्लोन की गई आवाज़ spk_audio_prompt से पढ़ी जाती है और नतीजा output_path पर लिखा जाता है।

pythonpython
from indextts.infer_v2 import IndexTTS2

tts = IndexTTS2(
    cfg_path="checkpoints/config.yaml",
    model_dir="checkpoints",
    use_fp16=False,
    use_cuda_kernel=False,
    use_deepspeed=False,
)

text = "Translate for me, what is a surprise!"
tts.infer(
    spk_audio_prompt='examples/voice_01.wav',
    text=text,
    output_path="gen.wav",
    verbose=True,
)

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • Video या animation की dubbing करें, duration control का इस्तेमाल करके generated speech को मूल timing के साथ मिलाए रखें
  • छोटे सैंपल से किसी एक speaker की आवाज़ क्लोन करें और articles, audiobooks या product walkthroughs का narration करें
  • एक ही आवाज़ रखते हुए style prompt बदलकर एक ही लाइन को अलग-अलग emotional tones में बनाएँ
  • Voice assistants या characters के prototype बनाएँ जिन्हें एक जैसी timbre और समायोज्य emotional delivery चाहिए

How IndexTTS compares

IndexTTS alongside other open-source audio, music & voice tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
VoiceStudio★ 122kअपने ही हार्डवेयर पर पूरी तरह voice clone करें, video dub करें और dictate करें
Whisper★ 114kसामान्य उपयोग वाला स्पीच रिकग्निशन मॉडल, जो कई भाषाओं के ऑडियो को टेक्स्ट में बदलता और उसका अनुवाद करता है
GPT-SoVITS★ 64.4kसिर्फ़ एक मिनट के ऑडियो से few-shot वॉइस क्लोनिंग और TTS WebUI
Voicebox★ 61.7kलोकल वॉइस स्टूडियो: वॉइस क्लोनिंग, speech जनरेशन, dictation और एजेंट्स के लिए आवाज़
VibeVoice★ 57.7kMicrosoft का ओपन सोर्स voice AI, लंबे और कई स्पीकर वाले TTS और ASR के लिए
whisper.cpp★ 55.8kबिना किसी डिपेंडेंसी के, सादे C/C++ में Whisper स्पीच रिकग्निशन
Coqui TTS★ 46.3kओपन सोर्स टेक्स्ट-टू-स्पीच, मल्टीलिंगुअल वॉइस क्लोनिंग के साथ
IndexTTS★ 25.4kzero-shot text-to-speech, वॉइस क्लोनिंग और स्वतंत्र emotion control के साथ