语音克隆工具IndexTTS for Windows
本文最后更新于278 天前,其中的信息可能已经过时,如有错误请发送邮件到2067863254@qq.com

Usage Instructions

Environment Setup

  1. Download this repository:
git clone https://github.com/wwzhifeng/Index-TTS-Windows.git
  1. Install dependencies:
conda create -n index-tts python=3.10
conda activate index-tts
pip install -r requirements.txt

3. 下载模型文件(Windows 用户)

推荐使用 huggingface-cli 工具进行模型下载(需先安装):

pip install huggingface_hub

然后运行以下命令(Windows 下使用 ^ 表示换行):

huggingface-cli download IndexTeam/Index-TTS ^
  bigvgan_discriminator.pth bigvgan_generator.pth ^
  bpe.model dvae.pth gpt.pth unigram_12000.vocab ^
  --local-dir checkpoints



📌 如果下载缓慢,可尝试设置 Hugging Face 镜像(仅当前终端有效):

set HF_ENDPOINT=https://hf-mirror.com


🔗 或者手动下载模型文件:
https://huggingface.co/IndexTeam/Index-TTS



4. Run test script:


```bash
# Please put your prompt audio in 'test_data' and rename it to 'input.wav'
PYTHONPATH=. python indextts/infer.py
  1. Use as command line tool:
# Make sure pytorch has been installed before running this command
pip install -e .
indextts "大家好,我现在正在bilibili 体验 ai 科技,说实话,来之前我绝对想不到!AI技术已经发展到这样匪夷所思的地步了!" \
  --voice reference_voice.wav \
  --model_dir checkpoints \
  --config checkpoints/config.yaml \
  --output output.wav

Use --help to see more options.

indextts --help

Web Demo

python webui.py

Open your browser and visit http://127.0.0.1:7860 to see the demo.

Sample Code

from indextts.infer import IndexTTS
tts = IndexTTS(model_dir="checkpoints",cfg_path="checkpoints/config.yaml")
voice="reference_voice.wav"
text="大家好,我现在正在bilibili 体验 ai 科技,说实话,来之前我绝对想不到!AI技术已经发展到这样匪夷所思的地步了!比如说,现在正在说话的其实是B站为我现场复刻的数字分身,简直就是平行宇宙的另一个我了。如果大家也想体验更多深入的AIGC功能,可以访问 bilibili studio,相信我,你们也会吃惊的。"
tts.infer(voice, text, output_path)
文末附加内容
暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇