漫剧配音离线软件

【系统指令】 你是一个专业的剧本台词自动化拆解与情绪分析工具。接下来的任务中,请你严格执行以下步骤: 提取下方【剧本】中所有人物的对白。 去除对白原本的括号内动作/神态描写等杂乱信息,只保留纯台词。 全局绝对顺位编号(核心任务):按照对白在整个剧本中出现的先后顺序,为每一句台词打上全局递增的序号(01, 02, 03…)。 说明:序号代表这句台词在全剧本里的绝对出场位次。例如第一句是刘星说的,标为01;第二句苏小满接话,标为02;第三句刘星再说,标为03。 根据【情绪词库】,为每一句对白匹配最精准的英文情绪词。最终单句的标准格式为:(英文情绪) 序号 名字:对白。 按人物分类导出文件:将所有对白按照人物进行归类,每个人物生成一个独立的文本代码块(Code Block),顶部标明 人物名.txt,方便我直接一键复制。 【最高级警告】:在按照人物分类整合时,必须严格保留每句台词在第3步中获得的“全局绝对序号”!绝对不允许在单个人物区块内重新从01开始编号。单个人物文件中的序号出现跳跃(如01, 03, 08)是正确且必须的。


明亮自然、轻松欢笑的语气
with a bright, natural, light laughing tone
温暖开朗、充满活力的语气
with a warm, cheerful, energetic tone
开心满足、温柔浅笑的语气
with a happy, content, softly smiling tone
兴奋期待、略带雀跃的语气
with an excited, anticipatory, slightly joyful tone
轻松自在、开怀大笑的语气
with a relaxed, carefree, hearty laughing tone
温柔治愈、暖心微笑的语气
with a gentle, healing, warm smiling tone
俏皮可爱、活泼轻快的语气
with a playful, cute, lively and light tone
阳光开朗、积极向上的语气
with a sunny, bright, positive tone
幸福甜蜜、温柔浅笑的语气
with a happy, sweet, gently smiling tone
轻松幽默、开怀大笑的语气
with a light, humorous, openly laughing tone
温柔亲切、笑意盈盈的语气
with a gentle, kind, smiling tone
惊喜开心、略带意外的语气
with a surprised, happy, slightly unexpected tone
轻松愉悦、淡然微笑的语气
with a relaxed, pleasant, calmly smiling tone
活泼开朗、元气满满的语气
with a lively, cheerful, energetic tone
温柔宠溺、轻声浅笑的语气
with a gentle, indulgent, softly laughing tone
开朗大方、自信微笑的语气
with a generous, confident, smiling tone
轻松惬意、悠然浅笑的语气
with a relaxed, cozy, gently smiling tone
热情洋溢、充满笑意的语气
with an enthusiastic, warm, smiling tone
开心爽朗、直率大笑的语气
with a happy, straightforward, hearty laughing tone
温柔满足、恬静微笑的语气
with a gentle, content, peaceful smiling tone


克制隐忍、略带不悦的语气
with a restrained, suppressed, slightly displeased tone
严肃冷淡、略带怒意的语气
with a serious, cold, slightly angry tone
烦躁不耐、语气加重的语气
with an annoyed, impatient, raised tone
愤怒指责、严肃质问的语气
with an angry, accusatory, stern questioning tone
冰冷强硬、略带压迫的语气
with a cold, tough, slightly oppressive tone
怒火中烧、压低声音的语气
with a burning anger, lowered voice tone
不满抱怨、略带委屈的语气
with a dissatisfied, complaining, slightly wronged tone
严厉呵斥、语气冰冷的语气
with a stern, scolding, cold tone
恼怒烦躁、语速加快的语气
with an irritated, annoyed, fast-paced tone
冷漠抵触、略带抗拒的语气
with an indifferent, resistant, slightly defensive tone
愤怒失望、语气沉重的语气
with an angry, disappointed, heavy tone
强硬决绝、不容反驳的语气
with a firm, determined, uncompromising tone
烦躁厌恶、略带嫌弃的语气
with an annoyed, disgusted, slightly dismissive tone
压抑怒火、低沉沙哑的语气
with a suppressed anger, deep, hoarse tone
生气质问、语气尖锐的语气
with an angry questioning, sharp tone
不满冷淡、懒得解释的语气
with a dissatisfied, cold, unwilling to explain tone
愤怒冰冷、不带情绪的语气
with an angry, cold, emotionless tone
烦躁疲惫、略带火气的语气
with an annoyed, tired, slightly fiery tone
强硬警告、语气严肃的语气
with a firm warning, serious tone
恼怒无奈、略带叹息的语气
with an annoyed, helpless, slightly sighing tone

悲伤低落、轻声哽咽的语气
with a sad, low, slightly choking tone
失落无助、声音微弱的语气
with a lost, helpless, weak voice tone
委屈难过、略带哭腔的语气
with a wronged, sad, slightly tearful tone
心碎难过、低沉沙哑的语气
with a heartbroken, sad, deep hoarse tone
黯然神伤、轻声叹息的语气
with a gloomy, hurt, softly sighing tone
孤独落寞、语气低沉的语气
with a lonely, desolate, low-pitched tone
疲惫难过、无力诉说的语气
with a tired, sad, powerless tone
伤感怀念、温柔低沉的语气
with a sentimental, nostalgic, gentle low tone
绝望无力、语气空洞的语气
with a desperate, helpless, empty tone
难过失望、轻声呢喃的语气
with a sad, disappointed, softly murmuring tone
压抑悲伤、强忍泪水的语气
with a suppressed sadness, holding back tears tone
心酸委屈、低声诉说的语气
with a sad, wronged, low speaking tone
沉重难过、语速缓慢的语气
with a heavy, sad, slow-paced tone
悲伤茫然、眼神空洞的语气
with a sad, dazed, empty-eyed tone
温柔伤感、略带忧郁的语气
with a gentle, sentimental, slightly melancholic tone
难过不舍、轻声挽留的语气
with a sad, reluctant, softly pleading tone
痛苦压抑、沉默不语的语气
with a painful, suppressed, silent tone
悲伤疲惫、有气无力的语气
with a sad, tired, weak tone
心疼难过、温柔安抚的语气
with a distressed, sad, gentle comforting tone
黯然失落、轻声低喃的语气
with a gloomy, lost, softly muttering tone

害怕紧张、声音颤抖的语气
with a scared, nervous, trembling tone
惊慌失措、语速慌乱的语气
with a panicked, flustered, hurried tone
恐惧不安、略带喘息的语气
with a frightened, anxious, slightly breathless tone
胆怯懦弱、声音细小的语气
with a timid, cowardly, quiet tone
紧张不安、迟疑犹豫的语气
with a nervous, anxious, hesitant tone
惊恐警惕、压低声音的语气
with a shocked, vigilant, lowered voice tone
害怕无助、轻声求救的语气
with a scared, helpless, softly pleading tone
紧张慌乱、结结巴巴的语气
with a nervous, flustered, stammering tone
恐惧紧绷、语气僵硬的语气
with a frightened, tense, stiff tone
不安忐忑、心神不宁的语气
with an uneasy, perturbed, restless tone
害怕抗拒、略带退缩的语气
with a scared, resistant, slightly retreating tone
紧张担忧、轻声询问的语气
with a nervous, worried, softly questioning tone
惊恐未定、呼吸急促的语气
with a shocked, shaken, rapid breathing tone
害怕迟疑、不敢开口的语气
with a scared, hesitant, afraid to speak tone
恐惧绝望、声音发颤的语气
with a frightened, desperate, trembling tone

温柔沉思、语速缓慢的语气
with a gentle, thoughtful, slow tone
认真思考、冷静理性的语气
with a serious thinking, calm and rational tone
疑惑不解、轻声追问的语气
with a confused, puzzled, softly questioning tone
若有所思、停顿沉吟的语气
with a pensive, thoughtful, paused tone
冷静客观、不带情绪的语气
with a calm, objective, emotionless tone
温柔困惑、略带迟疑的语气
with a gentle puzzled, slightly hesitant tone
理性分析、语气平稳的语气
with a rational analysis, steady tone
专注思考、安静沉默的语气
with a focused thinking, quiet and silent tone
好奇探索、认真询问的语气
with a curious exploring, earnest questioning tone
淡然平静、从容舒缓的语气
with a calm, peaceful, leisurely tone

温柔调侃、略带打趣的语气
with a gentle teasing, slightly playful tone
羞涩腼腆、轻声细语的语气
with a shy, bashful, soft-spoken tone
慵懒惬意、悠然放松的语气
with a lazy, cozy, relaxed tone
坚定自信、沉稳有力的语气
with a firm, confident, steady and strong tone
温柔体贴、充满关怀的语气
with a gentle, caring, full of concern tone
轻松释然、放下负担的语气
with a relieved, light, burden-free tone
调皮促狭、略带坏笑的语气
with a naughty, mischievous, slightly grinning tone
温柔宠溺、轻声包容的语气
with a gentle, indulgent, softly tolerant tone
好奇试探、略带挑战的语气
with a curious probing, slightly challenging tone
冷淡疏离、保持距离的语气
with a cold, distant, keeping distance tone
温柔鼓励、充满信心的语气
with a gentle encouragement, full of confidence tone
无奈苦笑、略带自嘲的语气
with a helpless bitter smile, slightly self-mocking tone
温柔坚定、不容动摇的语气
with a gentle firmness, unshakable tone
轻松调皮、活泼搞怪的语气
with a light naughty, lively and funny tone
平静释然、温柔放下的语气
with a calm relief, gentle letting go tone

一键安装便携包链接:

链接:https://pan.quark.cn/s/897c204e9498

使用说明:

https://github.com/giuliano1101/index_tts2_batchGUI.git

说明书:

📖 关于本项目

IndexTTS2 批量生成 GUI 是一个基于强大的 IndexTTS2 模型构建的用户友好桌面应用程序。它提供了一个直观的界面,用于从文本生成高质量、富有情感表现力的语音,并具有先进的批量处理能力。

✨ 核心功能

🎭 高级情绪控制

  • 8 个情绪维度:高兴、悲伤、愤怒、恐惧、厌恶、惊讶、平静、中性
  • 精细控制:使用精确滑块将每个情绪从 0.0 调整到 1.0
  • 情绪强度档位:低、中、高预设,快速调整
  • 声纹保护模式:平衡情绪表达和说话人特征
  • 情绪向量持久化:保存并在多个任务中重用情绪设置

🎯 灵活的文本输入格式

  • 纯文本:简单的对话行
  • 情绪标记文本:括号内的英文情绪描述(cheerful and excited) 你好,今天过得怎么样? (calm and gentle) 我很好,谢谢!
  • 自动情绪检测:AI 驱动的文本情绪分析

⚡ 高性能批量处理

  • 单句模式:快速测试和预览
  • 批量模式:处理包含数百行的整个文本文件
  • 多 GPU 支持:在多个 GPU 上分配任务以加快处理速度
  • 顺序任务队列:自动设置和运行多个任务
  • 进度跟踪:实时进度条和状态更新

🌍 多语言界面

  • 4 种语言:中文、英文、日文、西班牙文
  • 完全本地化:所有 UI 元素、日志和帮助文本
  • 一键切换:无需重启即可更改语言

🖥️ 用户友好界面

  • 现代 Tkinter GUI:简洁、直观的设计
  • 选项卡布局:分离单句和批量模式
  • 实时控制台:监控生成进度
  • 日志导出:将控制台输出保存到文件
  • 错误处理:清晰的错误消息和指导

🎨 附加功能

  • CPU/GPU 模式选择:支持有无 GPU 运行
  • 自定义输出位置:选择音频文件保存位置
  • 一键停止:随时取消正在运行的任务
  • 自动恢复:从停止的地方继续
  • 可移植:轻松将项目移动到任何位置

🛠️ 技术栈

  • 核心模型:IndexTTS2(基于 bilibili 的开源模型)
  • GUI 框架:Tkinter(Python)
  • 深度学习:PyTorch、Transformers
  • 音频处理:LibROSA、TorchAudio
  • 使用的模型
    • amphion/MaskGCT
    • facebook/w2v-bert-2.0
    • funasr/campplus
    • nvidia/bigvgan_v2_22khz_80band_256x
    • 基于 Qwen 的定制情绪分析器

📋 系统要求

最低要求

  • 操作系统:Windows 10/11(64 位)
  • Python:3.10 或更高
  • 内存:8 GB
  • 磁盘空间:20 GB 可用空间
  • 网络:初始模型下载需要

推荐配置

  • 内存:16 GB 或更多
  • GPU:NVIDIA GPU,8GB+ 显存(CUDA 兼容)
  • 磁盘空间:30 GB 可用空间(用于模型和输出)

🚀 快速开始

步骤 1:克隆仓库

git clone https://github.com/your-username/index-tts2-gui.git
cd index-tts2-gui

步骤 2:下载模型(约 8-10 GB)

方式 A:自动下载(推荐)

download_models.bat

脚本将:

  • 优先尝试国际源(huggingface.co)
  • 如需要则回退到国内镜像(hf-mirror.com)
  • 自动验证所有下载

方式 B:手动下载

查看 MODEL_DOWNLOAD_GUIDE.txt 获取详细说明。

步骤 3:设置环境

setup_new_location.bat

这将:

  • 检查 Python 安装
  • 创建虚拟环境
  • 安装所有依赖
  • 验证必需文件

步骤 4:启动应用程序

GUI 模式(无控制台):

start_gui.pyw

调试模式(带控制台):

run_tts_gui.bat

📚 详细安装指南

有关完整的分步说明,请参阅:

💡 使用示例

单句生成

  1. 启动 GUI
  2. 转到”单句模式”选项卡
  3. 选择参考音频(您的目标声音)
  4. 输入文本或使用情绪滑块
  5. 点击”生成音频”
  6. 选择保存位置

批量处理

  1. 准备包含对话行的文本文件:(happy) 大家早上好! (sad and tired) 我今天感觉很累。 (excited) 这真是个好消息!
  2. 转到”批量模式”选项卡
  3. 选择文本文件、参考音频和输出目录
  4. 配置情绪设置
  5. 点击”添加到任务列表”
  6. 点击”开始所有任务”

多 GPU 处理

  1. 在 GPU 设置中启用”多 GPU”模式
  2. 像往常一样添加批量任务
  3. 系统将自动在所有可用 GPU 上分配工作
  4. 在控制台中监控进度

⚙️ 配置

情绪控制

  • 滑块:单独调整 8 个情绪维度
  • 情绪档位:快速预设(低 0.6,中 0.8,高 1.0)
  • 声纹保护:启用以保持说话人特征

GPU 设置

  • 自动:系统自动选择 GPU
  • 单 GPU:选择特定 GPU(如果您有多个)
  • 多 GPU:为批量任务使用所有可用 GPU
  • CPU 模式:无 GPU 也可工作(较慢)

文本文件格式

纯文本:

你好,你好吗?
我很好!

带情绪标签(仅限英文):

(cheerful and excited) 你好,你好吗?
(calm and gentle) 我很好!

⚠️ 重要:情绪描述必须使用英文并在括号内。

❓ 常见问题和解决方案

问题:”找不到模型文件”

解决方案:

  1. 运行 download_models.bat 下载 HuggingFace 模型
  2. 从项目发布页面下载定制模型文件
  3. 验证目录结构与 MODEL_DOWNLOAD_GUIDE.txt 匹配

问题:”无法访问 huggingface.co”

解决方案:

  • 运行 download_models.bat – 它会自动尝试国内镜像(hf-mirror.com)
  • 或手动从以下地址下载:https://hf-mirror.com

问题:”未检测到 GPU”

解决方案:

  1. 更新 NVIDIA GPU 驱动程序
  2. 安装 CUDA 工具包(11.8 或 12.1)
  3. 验证 PyTorch 可以检测 GPU:python -c “import torch; print(torch.cuda.is_available())”
  4. 使用 CPU 模式作为备用

问题:”内存不足”

解决方案:

  • 减少批量大小
  • 启用多 GPU 模式
  • 降低情绪强度
  • 关闭其他应用程序
  • 使用 CPU 模式(较慢但有效)

问题:”情绪不起作用”

解决方案:

  • 验证情绪描述格式:(emotion words) dialogue text
  • 情绪描述使用英文
  • 检查文本文件编码(应为 UTF-8)
  • 在批量模式中启用”使用基于文本的情绪”

问题:”应用程序无法启动”

解决方案:

  1. 检查 Python 版本:python --version(应为 3.10+)
  2. 重新安装依赖:cd project-folder setup_new_location.bat
  3. 检查 startup_log.txt 中的日志
  4. 使用控制台运行以查看错误:run_tts_gui.bat

更多故障排除,请参阅 SETUP_GUIDE.txt

🗂️ 项目结构

index-tts2-gui/
├── tts_batch_gui.py          # 主 GUI 应用程序
├── batch_generate.py         # 后端 TTS 引擎
├── download_models.bat       # 模型下载脚本
├── setup_new_location.bat    # 环境设置脚本
├── start_gui.pyw             # GUI 启动器(无控制台)
├── run_tts_gui.bat           # GUI 启动器(带控制台)
├── requirements.txt          # Python 依赖
├── checkpoints/              # 模型文件(需要下载)
│   ├── gpt.pth
│   ├── s2mel.pth
│   ├── bpe.model
│   ├── qwen0.6bemo4-merge/
│   └── hf_cache/             # HuggingFace 模型
├── indextts/                 # 核心 TTS 模块
├── assets/                   # 图片和图标
├── docs/                     # 附加文档
└── examples/                 # 示例音频文件

评论0

显示验证码