[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"similar-Artrajz--vits-simple-api":3,"tool-Artrajz--vits-simple-api":64},[4,17,25,39,48,56],{"id":5,"name":6,"github_repo":7,"description_zh":8,"stars":9,"difficulty_score":10,"last_commit_at":11,"category_tags":12,"status":16},1381,"everything-claude-code","affaan-m\u002Feverything-claude-code","everything-claude-code 是一套专为 AI 编程助手（如 Claude Code、Codex、Cursor 等）打造的高性能优化系统。它不仅仅是一组配置文件，而是一个经过长期实战打磨的完整框架，旨在解决 AI 代理在实际开发中面临的效率低下、记忆丢失、安全隐患及缺乏持续学习能力等核心痛点。\n\n通过引入技能模块化、直觉增强、记忆持久化机制以及内置的安全扫描功能，everything-claude-code 能显著提升 AI 在复杂任务中的表现，帮助开发者构建更稳定、更智能的生产级 AI 代理。其独特的“研究优先”开发理念和针对 Token 消耗的优化策略，使得模型响应更快、成本更低，同时有效防御潜在的攻击向量。\n\n这套工具特别适合软件开发者、AI 研究人员以及希望深度定制 AI 工作流的技术团队使用。无论您是在构建大型代码库，还是需要 AI 协助进行安全审计与自动化测试，everything-claude-code 都能提供强大的底层支持。作为一个曾荣获 Anthropic 黑客大奖的开源项目，它融合了多语言支持与丰富的实战钩子（hooks），让 AI 真正成长为懂上",138956,2,"2026-04-05T11:33:21",[13,14,15],"开发框架","Agent","语言模型","ready",{"id":18,"name":19,"github_repo":20,"description_zh":21,"stars":22,"difficulty_score":10,"last_commit_at":23,"category_tags":24,"status":16},3704,"NextChat","ChatGPTNextWeb\u002FNextChat","NextChat 是一款轻量且极速的 AI 助手，旨在为用户提供流畅、跨平台的大模型交互体验。它完美解决了用户在多设备间切换时难以保持对话连续性，以及面对众多 AI 模型不知如何统一管理的痛点。无论是日常办公、学习辅助还是创意激发，NextChat 都能让用户随时随地通过网页、iOS、Android、Windows、MacOS 或 Linux 端无缝接入智能服务。\n\n这款工具非常适合普通用户、学生、职场人士以及需要私有化部署的企业团队使用。对于开发者而言，它也提供了便捷的自托管方案，支持一键部署到 Vercel 或 Zeabur 等平台。\n\nNextChat 的核心亮点在于其广泛的模型兼容性，原生支持 Claude、DeepSeek、GPT-4 及 Gemini Pro 等主流大模型，让用户在一个界面即可自由切换不同 AI 能力。此外，它还率先支持 MCP（Model Context Protocol）协议，增强了上下文处理能力。针对企业用户，NextChat 提供专业版解决方案，具备品牌定制、细粒度权限控制、内部知识库整合及安全审计等功能，满足公司对数据隐私和个性化管理的高标准要求。",87618,"2026-04-05T07:20:52",[13,15],{"id":26,"name":27,"github_repo":28,"description_zh":29,"stars":30,"difficulty_score":10,"last_commit_at":31,"category_tags":32,"status":16},2268,"ML-For-Beginners","microsoft\u002FML-For-Beginners","ML-For-Beginners 是由微软推出的一套系统化机器学习入门课程，旨在帮助零基础用户轻松掌握经典机器学习知识。这套课程将学习路径规划为 12 周，包含 26 节精炼课程和 52 道配套测验，内容涵盖从基础概念到实际应用的完整流程，有效解决了初学者面对庞大知识体系时无从下手、缺乏结构化指导的痛点。\n\n无论是希望转型的开发者、需要补充算法背景的研究人员，还是对人工智能充满好奇的普通爱好者，都能从中受益。课程不仅提供了清晰的理论讲解，还强调动手实践，让用户在循序渐进中建立扎实的技能基础。其独特的亮点在于强大的多语言支持，通过自动化机制提供了包括简体中文在内的 50 多种语言版本，极大地降低了全球不同背景用户的学习门槛。此外，项目采用开源协作模式，社区活跃且内容持续更新，确保学习者能获取前沿且准确的技术资讯。如果你正寻找一条清晰、友好且专业的机器学习入门之路，ML-For-Beginners 将是理想的起点。",84991,"2026-04-05T10:45:23",[33,34,35,36,14,37,15,13,38],"图像","数据工具","视频","插件","其他","音频",{"id":40,"name":41,"github_repo":42,"description_zh":43,"stars":44,"difficulty_score":45,"last_commit_at":46,"category_tags":47,"status":16},3128,"ragflow","infiniflow\u002Fragflow","RAGFlow 是一款领先的开源检索增强生成（RAG）引擎，旨在为大语言模型构建更精准、可靠的上下文层。它巧妙地将前沿的 RAG 技术与智能体（Agent）能力相结合，不仅支持从各类文档中高效提取知识，还能让模型基于这些知识进行逻辑推理和任务执行。\n\n在大模型应用中，幻觉问题和知识滞后是常见痛点。RAGFlow 通过深度解析复杂文档结构（如表格、图表及混合排版），显著提升了信息检索的准确度，从而有效减少模型“胡编乱造”的现象，确保回答既有据可依又具备时效性。其内置的智能体机制更进一步，使系统不仅能回答问题，还能自主规划步骤解决复杂问题。\n\n这款工具特别适合开发者、企业技术团队以及 AI 研究人员使用。无论是希望快速搭建私有知识库问答系统，还是致力于探索大模型在垂直领域落地的创新者，都能从中受益。RAGFlow 提供了可视化的工作流编排界面和灵活的 API 接口，既降低了非算法背景用户的上手门槛，也满足了专业开发者对系统深度定制的需求。作为基于 Apache 2.0 协议开源的项目，它正成为连接通用大模型与行业专有知识之间的重要桥梁。",77062,3,"2026-04-04T04:44:48",[14,33,13,15,37],{"id":49,"name":50,"github_repo":51,"description_zh":52,"stars":53,"difficulty_score":45,"last_commit_at":54,"category_tags":55,"status":16},519,"PaddleOCR","PaddlePaddle\u002FPaddleOCR","PaddleOCR 是一款基于百度飞桨框架开发的高性能开源光学字符识别工具包。它的核心能力是将图片、PDF 等文档中的文字提取出来，转换成计算机可读取的结构化数据，让机器真正“看懂”图文内容。\n\n面对海量纸质或电子文档，PaddleOCR 解决了人工录入效率低、数字化成本高的问题。尤其在人工智能领域，它扮演着连接图像与大型语言模型（LLM）的桥梁角色，能将视觉信息直接转化为文本输入，助力智能问答、文档分析等应用场景落地。\n\nPaddleOCR 适合开发者、算法研究人员以及有文档自动化需求的普通用户。其技术优势十分明显：不仅支持全球 100 多种语言的识别，还能在 Windows、Linux、macOS 等多个系统上运行，并灵活适配 CPU、GPU、NPU 等各类硬件。作为一个轻量级且社区活跃的开源项目，PaddleOCR 既能满足快速集成的需求，也能支撑前沿的视觉语言研究，是处理文字识别任务的理想选择。",74913,"2026-04-05T10:44:17",[15,33,13,37],{"id":57,"name":58,"github_repo":59,"description_zh":60,"stars":61,"difficulty_score":45,"last_commit_at":62,"category_tags":63,"status":16},2181,"OpenHands","OpenHands\u002FOpenHands","OpenHands 是一个专注于 AI 驱动开发的开源平台，旨在让智能体（Agent）像人类开发者一样理解、编写和调试代码。它解决了传统编程中重复性劳动多、环境配置复杂以及人机协作效率低等痛点，通过自动化流程显著提升开发速度。\n\n无论是希望提升编码效率的软件工程师、探索智能体技术的研究人员，还是需要快速原型验证的技术团队，都能从中受益。OpenHands 提供了灵活多样的使用方式：既可以通过命令行（CLI）或本地图形界面在个人电脑上轻松上手，体验类似 Devin 的流畅交互；也能利用其强大的 Python SDK 自定义智能体逻辑，甚至在云端大规模部署上千个智能体并行工作。\n\n其核心技术亮点在于模块化的软件智能体 SDK，这不仅构成了平台的引擎，还支持高度可组合的开发模式。此外，OpenHands 在 SWE-bench 基准测试中取得了 77.6% 的优异成绩，证明了其解决真实世界软件工程问题的能力。平台还具备完善的企业级功能，支持与 Slack、Jira 等工具集成，并提供细粒度的权限管理，适合从个人开发者到大型企业的各类用户场景。",70612,"2026-04-05T11:12:22",[15,14,13,36],{"id":65,"github_repo":66,"name":67,"description_en":68,"description_zh":69,"ai_summary_zh":69,"readme_en":70,"readme_zh":71,"quickstart_zh":72,"use_case_zh":73,"hero_image_url":74,"owner_login":75,"owner_name":75,"owner_avatar_url":76,"owner_bio":77,"owner_company":77,"owner_location":77,"owner_email":78,"owner_twitter":77,"owner_website":77,"owner_url":79,"languages":80,"stars":109,"forks":110,"last_commit_at":111,"license":112,"difficulty_score":45,"env_os":113,"env_gpu":114,"env_ram":115,"env_deps":116,"category_tags":129,"github_topics":130,"view_count":10,"oss_zip_url":77,"oss_zip_packed_at":77,"status":16,"created_at":137,"updated_at":138,"faqs":139,"releases":178},1247,"Artrajz\u002Fvits-simple-api","vits-simple-api","A simple VITS HTTP API, developed by extending Moegoe with additional features.","vits-simple-api 是一个基于 VITS（Voice Identity Transformation System）技术的简单 HTTP 接口工具，支持文本转语音、语音转换等多种功能。它通过扩展 Moegoe 项目并添加更多特性，简化了调用 VITS 模型的过程，让用户可以更方便地生成高质量语音。\n\n这个工具解决了传统语音合成流程复杂、部署门槛高的问题，提供了一种快速部署和调用多种语音模型的方式。用户只需通过简单的 HTTP 请求，即可实现多语言、多风格的语音生成，甚至支持情绪控制和长文本批量处理等功能。\n\n适合需要集成语音合成功能的开发者、研究人员或设计师使用，特别是对 AI 音频处理有一定了解但希望减少部署复杂度的用户。其独特之处在于支持多种主流 VITS 模型，如 Bert-VITS2、GPT-SoVITS 等，并且具备自动识别语言类型、GPU 加速推理等实用功能，极大提升了使用效率与灵活性。","\u003Cdiv class=\"title\" align=center>\r\n    \u003Ch1>vits-simple-api\u003C\u002Fh1>\r\n\t\u003Cdiv>Simply call the vits api\u003C\u002Fdiv>\r\n    \u003Cbr\u002F>\r\n    \u003Cbr\u002F>\r\n    \u003Cp>\r\n        \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002FArtrajz\u002Fvits-simple-api\">\r\n    \t\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fpython-3.10-green\">\r\n        \u003Ca href=\"https:\u002F\u002Fhub.docker.com\u002Fr\u002Fartrajz\u002Fvits-simple-api\">\r\n            \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fdocker\u002Fpulls\u002Fartrajz\u002Fvits-simple-api\">\u003C\u002Fa>\r\n    \u003C\u002Fp>\r\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fblob\u002Fmain\u002FREADME.md\">English\u003C\u002Fa>|\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fblob\u002Fmain\u002FREADME_zh.md\">中文文档\u003C\u002Fa>\r\n    \u003Cbr\u002F>\r\n\u003C\u002Fdiv>\r\n\r\n\r\n\r\n\r\n\r\n# Feature\r\n\r\n- [x] VITS text-to-speech, voice conversion\r\n- [x] HuBert-soft VITS\r\n- [x] [vits_chinese](https:\u002F\u002Fgithub.com\u002FPlayVoice\u002Fvits_chinese)\r\n- [x] [Bert-VITS2](https:\u002F\u002Fgithub.com\u002FStardust-minus\u002FBert-VITS2)\r\n- [x] W2V2 VITS \u002F [emotional-vits](https:\u002F\u002Fgithub.com\u002Finnnky\u002Femotional-vits) dimensional emotion model\r\n- [x] [GPT-SoVITS](https:\u002F\u002Fgithub.com\u002FRVC-Boss\u002FGPT-SoVITS)\r\n- [x] Support for loading multiple models\r\n- [x] Automatic language recognition and processing,set the scope of language type recognition according to model's cleaner,support for custom language type range\r\n- [x] Customize default parameters\r\n- [x] Long text batch processing\r\n- [x] GPU accelerated inference\r\n- [x] SSML (Speech Synthesis Markup Language) work in progress...\r\n\r\n\r\n## Online Demo\r\n\r\n[![Hugging Face Spaces](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F%F0%9F%A4%97%20Hugging%20Face-Spaces-blue)](https:\u002F\u002Fhuggingface.co\u002Fspaces\u002FArtrajz\u002Fvits-simple-api) Thanks to Hugging Face!\r\n\r\n[Colab Notebook](https:\u002F\u002Fcolab.research.google.com\u002Fdrive\u002F1uBkMy0UjLE3C1zvxZ7NPPc3K74v4B6zw)\r\n\r\nPlease note that different IDs may support different languages.[speakers](https:\u002F\u002Fartrajz-vits-simple-api.hf.space\u002Fvoice\u002Fspeakers)\r\n\r\n- `https:\u002F\u002Fartrajz-vits-simple-api.hf.space\u002Fvoice\u002Fvits?text=你好,こんにちは&id=164`\r\n- `https:\u002F\u002Fartrajz-vits-simple-api.hf.space\u002Fvoice\u002Fvits?text=Difficult the first time, easy the second.&id=4`\r\n- excited:`https:\u002F\u002Fartrajz-vits-simple-api.hf.space\u002Fvoice\u002Fw2v2-vits?text=こんにちは&id=3&emotion=111`\r\n- whispered:`https:\u002F\u002Fartrajz-vits-simple-api.hf.space\u002Fw2v2-vits?text=こんにちは&id=3&emotion=2077` \r\n\r\nhttps:\u002F\u002Fuser-images.githubusercontent.com\u002F73542220\u002F237995061-c1f25b4e-dd86-438a-9363-4bb1fe65b425.mov\r\n\r\n# Deployment\r\n\r\nThere are two deployment options to choose from. Regardless of the option you select, you'll need to import the model after deployment to use the application.\r\n\r\n## Docker Deployment (Recommended for Linux)\r\n\r\n### Step 1: Pull the Docker Image\r\n\r\nRun the following command to pull the Docker image. Follow the prompts in the script to choose the necessary files to download and pull the image:\r\n\r\n```bash\r\nbash -c \"$(wget -O- https:\u002F\u002Fraw.githubusercontent.com\u002FArtrajz\u002Fvits-simple-api\u002Fmain\u002Fvits-simple-api-installer-latest.sh)\"\r\n```\r\n\r\nThe default paths for project configuration files and model folders are `\u002Fusr\u002Flocal\u002Fvits-simple-api\u002F`.\r\n\r\n### Step 2: Start\r\n\r\nRun the following command to start the container:\r\n\r\n```bash\r\ndocker-compose up -d\r\n```\r\n\r\n### Image Update\r\n\r\nTo update the image, run the following commands:\r\n\r\n```bash\r\ndocker-compose pull\r\n```\r\n\r\nThen, restart the container:\r\n\r\n```bash\r\ndocker-compose up -d\r\n```\r\n\r\n## Virtual Environment Deployment\r\n\r\n### Step 1: Clone the Project\r\n\r\nClone the project repository using the following command:\r\n\r\n```bash\r\ngit clone https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api.git\r\n```\r\n\r\n### Step 2: Install Python Dependencies\r\n\r\nIt is recommended to use a virtual environment with Python version 3.10 for this project. Run the following command to install the Python dependencies required for the project:\r\n\r\nIf you encounter issues installing certain dependencies, please refer to the common problems outlined below.\r\n\r\n```bash\r\npip install -r requirements.txt\r\n```\r\n\r\n### Step 3: Start\r\n\r\nRun the following command to start the program:\r\n\r\n```bash\r\npython app.py\r\n```\r\n\r\n## Windows Quick Deployment Package\r\n\r\n### Step 1: Download and Extract the Deployment Package\r\n\r\nGo to the [releases page](https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Freleases) and download the latest deployment package. Extract the downloaded files.\r\n\r\nFor compression reasons (and the Github release limiting the size of a single file to 2GB), there are some optional dependency models that are not included in the deployment package, and these are usually downloaded **automatically** by the program when loading the corresponding sound model (if the loaded model requires it). \r\n\r\nIn case the program doesn't download the dependency model manually, or if you find that If the program does not download the sound model automatically and you need to download the dependency model manually, or if you find that the successfully loaded sound model is empty, please read the **Troubleshooting - Successfully loaded model is empty** section below.\r\n\r\n### Step 2: Start\r\n\r\nRun `start.bat` to launch the program.\r\n\r\n## One-Click Cloud Deployment\r\n\r\nThis project image has been deployed on the Compshare. No configuration is required—ready to use out of the box. Register for free and enjoy 5 hours of RTX 4090 or 10 hours of RTX 3080 Ti experience. [Click to access](https:\u002F\u002Fwww.compshare.cn\u002Fimages\u002FjZtOlBLHJi5K?referral_code=JqaheomBz8wCDWeUkpDSDF&ytag=GPU_yy_gh_vits)\r\n\r\n## Model Loading\r\n\r\n### Step 1: Download VITS Models\r\nDownload the VITS model files and place them in the `data\u002Fmodels` folder.\r\n\r\n### Step 2: Loading Models\r\n\r\n#### Automatic Model Loading\r\n\r\nStarting from version 0.6.6, it is default behavior to automatically load all models in the `data\u002Fmodels` folder, making it easier for beginners to use.\r\n\r\n(If this is your first time and you don't have any additional special needs, you don't need to know how to load the model manually)\r\n\r\n#### Manual Model Loading\r\n\r\nAfter the initial startup, a config.yaml configuration file will be generated. You need to change `tts_config.auto_load` to `false` in order to enable manual loading mode.\r\n\r\nYou can modify the `tts_model_config.tts_modes` in the config.yaml or make modifications in the admin panel in the browser.\r\n\r\n**Note: After version 0.6.6, the model loading path has been modified. Please follow the steps below to configure the model path again!**\r\n\r\nThe path can be an absolute path or a relative path. If it's a relative path, it starts from the `data\u002Fmodels` folder in the project root directory.\r\n\r\nFor example, if the `data\u002Fmodels` folder has the following files:\r\n\r\n```\r\n├─model1\r\n│  │─G_1000.pth\r\n│  └─config.json\r\n└─model2\r\n   │─G_1000.pth\r\n   └─config.json\r\n```\r\n\r\nFill in the configuration like this in the YAML file:\r\n\r\n```yaml\r\ntts_model_config:\r\n  models_dir: models\r\n  auto_load: false\r\n  tts_models:\r\n  - config_path: model1\u002Fconfig.json\r\n    vits_path: model1\u002FG_1000.pth\r\n  - config_path: model2\u002Fconfig.json\r\n    vits_path: model2\u002FG_1000.pth\r\n\t# GPT-SoVITS\r\n  - vits_path: gpt_sovits1\u002Fmodel1_e8_s11536.pth\r\n    t2s_path: gpt_sovits1\u002Fmodel1-e15.ckpt\r\n  - vits_path: gpt_sovits2\u002Fmodel2_e8_s11536.pth\r\n    t2s_path: gpt_sovits2\u002Fmodel2-e15.ckpt\r\n```\r\n\r\nLoading models through the admin panel is convenient, but if you want to load models outside the `data\u002Fmodels` folder, you can only do so by modifying the config.yaml configuration file. The method is to directly provide the absolute path.\r\n\r\nAbsolute path example:\r\n\r\n```yaml\r\ntts_model_config:\r\n  models_dir: models\r\n  auto_load: false\r\n  tts_models:\r\n  - config_path: D:\u002F\u002Fmodel3\u002Fconfig.json\r\n    vits_path: D:\u002F\u002Fmodel3\u002FG_1000.pth\r\n```\r\n\r\n- `models_dir`This is the models folder relative to the data directory, with the default value being \"models\". When auto_load is set to true, all models in the `models_dir` directory will be loaded.\r\n\r\n#### Other Models\r\n\r\nAfter downloading the BERT model and emotion model, place them in the `data\u002Fbert` and `data\u002Femotional` folders respectively. Find the corresponding names and insert them accordingly.\r\n\r\n# GPU accelerated\r\n\r\n## Windows\r\n### Install CUDA\r\nCheck the highest version of CUDA supported by your graphics card:\r\n```\r\nnvidia-smi\r\n```\r\nTaking CUDA 11.7 as an example, download it from the [official website](https:\u002F\u002Fdeveloper.nvidia.com\u002Fcuda-11-7-0-download-archive?target_os=Windows&amp;target_arch=x86_64&amp;target_version=10&amp;target_type=exe_local)\r\n### Install GPU version of PyTorch\r\n\r\nhttps:\u002F\u002Fpytorch.org\u002F\r\n\r\n```\r\npip install torch --index-url https:\u002F\u002Fdownload.pytorch.org\u002Fwhl\u002Fcu118\r\n```\r\n## Linux\r\nThe installation process is similar, but I don't have the environment to test it.\r\n\r\n# WebUI\r\n\r\n## Inference Frontend\r\n\r\n http:\u002F\u002F127.0.0.1:23456\r\n\r\n*Port is modifiable under the default setting of port 23456.\r\n\r\n## Admin Backend\r\n\r\nThe default address is http:\u002F\u002F127.0.0.1:23456\u002Fadmin.\r\n\r\n**The initial username and password can be found by searching for 'admin' in the config.yaml file after the first startup.**\r\n\r\n# Function Options Explanation\r\n\r\n## Disable the Admin Backend\r\n\r\nThe admin backend allows loading and unloading models, and while it has login authentication, for added security, you can disable the admin backend in the `config.yaml`:\r\n\r\n```yaml\r\n'IS_ADMIN_ENABLED': !!bool 'false'\r\n```\r\n\r\nThis extra measure helps ensure absolute security when making the admin backend inaccessible to the public network.\r\n\r\n## Bert-VITS2 Configuration and Language\u002FBert Model Usage\r\n\r\nStarting from Bert-VITS2 v2.0, a model requires loading three different language Bert models. If you only need to use one or two languages, you can add the `lang` parameter in the `config.json` file of the model's data section. The value `[\"zh\"]` indicates that the model only uses Chinese and will load Chinese Bert models. The value `[\"zh\", \"ja\"]` indicates the usage of both Chinese and Japanese bilingual models, and only Chinese and Japanese Bert models will be loaded. Similarly, this pattern continues for other language combinations.\r\n\r\nExample:\r\n\r\n```json\r\n\"data\": {\r\n  \"lang\": [\"zh\", \"ja\"],\r\n  \"training_files\": \"filelists\u002Ftrain.list\",\r\n  \"validation_files\": \"filelists\u002Fval.list\",\r\n  \"max_wav_value\": 32768.0,\r\n  ...\r\n```\r\n## Custom Chinese Polyphonic Dictionary\r\n\r\nIf you encounter issues with incorrect pronunciation of polyphonic characters, you can try resolving it using the following method.\r\n\r\nCreate and open phrases_dict.txt in the `data` directory to add polyphonic words.\r\n\r\n```python\r\n{\r\n\"一骑当千\": [[\"yí\"], [\"jì\"], [\"dāng\"], [\"qiān\"]],\r\n}\r\n```\r\n\r\n## GPT-SoVITS Reference Audio Presets\r\n\r\nFind the configuration for GPT-SoVITS in the config.yaml file. Add presets under the presets section. Multiple presets can be added, with keys serving as preset names. Below are two default presets, default and default2:\r\n\r\n```\r\ngpt_sovits_config:\r\n  hz: 50\r\n  is_half: false\r\n  id: 0\r\n  lang: auto\r\n  format: wav\r\n  segment_size: 50\r\n  presets:\r\n    default:\r\n      refer_wav_path: null\r\n      prompt_text: null\r\n      prompt_lang: auto\r\n    default2:\r\n      refer_wav_path: null\r\n      prompt_text: null\r\n      prompt_lang: auto\r\n```\r\n\r\n## Reading API\r\n\r\nTested in [legado](https:\u002F\u002Fgithub.com\u002Fgedoor\u002Flegado)\r\n\r\nMultiple models can be used for reading, including VITS, Bert-VITS2, GPT-SoVITS. Parameters starting with `in` configure the speaker of the text in quotes, while parameters starting with `nr` configure the narrator.\r\n\r\nTo use GPT-SoVITS, it is necessary to configure the reference audio in the `presets` section of the `config.yaml` file in advance and modify the preset in the URL below.\r\n\r\nThe IP in the URL can be found after the API is started, generally using a local area network IP starting with 192.168.\r\n\r\nAfter modification, select the reading engine, add the reading engine, paste the source, and enable the reading engine.\r\n\r\n```js\r\n{\r\n  \"concurrentRate\": \"1\",\r\n  \"contentType\": \"audio\u002Fwav\",\r\n  \"enabledCookieJar\": false,\r\n  \"header\": \"\",\r\n  \"id\": 1709643305070,\r\n  \"lastUpdateTime\": 1709821070082,\r\n  \"loginCheckJs\": \"\",\r\n  \"loginUi\": \"\",\r\n  \"loginUrl\": \"\",\r\n  \"name\": \"vits-simple-api\",\r\n  \"url\": \"http:\u002F\u002F192.168.xxx.xxx:23456\u002Fvoice\u002Freading?text={{java.encodeURI(speakText)}}&in_model_type=GPT-SOVITS&in_id=0&in_preset=default&nr_model_type=BERT-VITS2&nr_id=0&nr_preset=default&format=wav&lang=zh\"\r\n}\r\n```\r\n\r\n\r\n\r\n# Frequently Asked Questions\r\n\r\n## Bert-VITS2 Version Compatibility\r\n\r\nTo ensure compatibility with the Bert-VITS2 model, modify the config.json file by adding a version parameter \"version\": \"x.x.x\". For instance, if the model version is 1.0.1, the configuration file should be written as:\r\n\r\n```json\r\n{\r\n  \"version\": \"1.0.1\",\r\n  \"train\": {\r\n    \"log_interval\": 10,\r\n    \"eval_interval\": 100,\r\n    \"seed\": 52,\r\n    ...\r\n```\r\n\r\nPlease note that for the Chinese extra version, the version should be changed to `extra` or `zh-clap`, and for the extra fix version, the version should be `2.4` or `extra-fix`.\r\n\r\n## Troubleshooting - Successfully loaded models are empty \r\nFirst of all, please check if your program directory is a **plain English path** (can't contain any Chinese or special characters), or else you will encounter the situation that the program can't load models even if it doesn't report an error. \r\n\r\nSecondly, please check if your models are correctly placed (refer to the section of **Manual Model Loading**). \r\n\r\nYour models should not be placed directly in `data\u002Fmodels`, but in a folder under the models directory (this folder can be any name without special characters), one directory for each sound model. \r\n\r\nLastly, check the log for any messages like download failure, you can refer to the following section on **manually placing dependent models**\r\n\r\n### Manually placing dependency models \r\n\r\ndownload https:\u002F\u002Fhf-mirror.com\u002FTencentGameMate\u002Fchinese-hubert-base\u002Fresolve\u002Fmain\u002Fpytorch_model.bin place in 'data\\hubert\\chinese_hubert_base' \r\n\r\ndownload https:\u002F\u002Fhf-mirror.com\u002Fhfl\u002Fchinese-roberta-wwm-ext-large\u002Fresolve\u002Fmain\u002Fpytorch_model.bin place 'data\\bert\\chinese-roberta-wwm-ext-large' \r\n\r\ndownload https:\u002F\u002Fopeni.pcl.ac.cn\u002FStardust_minus\u002FBert-VITS2\u002Fmodelmanage\u002Fmodel_filelist_tmpl?name=G2PWModel-v2-onnx place 'data\\G2PWModel' \r\n\r\nIf you don't want to download it from the openi.pcl.ac.cn platform (large files are not available directly from your browser), you can download it here https:\u002F\u002Fhuggingface.co\u002Frestsun2028\u002FB2ZHTH\u002Fblob\u002Fb0a8cc2c69c6d1962c679ea2887080a0a86e6bbf\u002Fg2pW\u002Fg2pW.onnx Get to 'g2pW.onnx'\r\n\r\n# API\r\n\r\n## GET\r\n\r\n#### speakers list \r\n\r\n- GET http:\u002F\u002F127.0.0.1:23456\u002Fvoice\u002Fspeakers\r\n\r\n  Returns the mapping table of role IDs to speaker names.\r\n\r\n#### voice vits\r\n\r\n- GET http:\u002F\u002F127.0.0.1:23456\u002Fvoice\u002Fvits?text=text\r\n\r\n  Default values are used when other parameters are not specified.\r\n\r\n- GET http:\u002F\u002F127.0.0.1:23456\u002Fvoice\u002Fvits?text=[ZH]text[ZH][JA]text[JA]&lang=mix\r\n\r\n  When lang=mix, the text needs to be annotated.\r\n\r\n- GET http:\u002F\u002F127.0.0.1:23456\u002Fvoice\u002Fvits?text=text&id=142&format=wav&lang=zh&length=1.4\r\n\r\n   The text is \"text\", the role ID is 142, the audio format is wav, the text language is zh, the speech length is 1.4, and the other parameters are default.\r\n\r\n#### check\r\n\r\n- GET http:\u002F\u002F127.0.0.1:23456\u002Fvoice\u002Fcheck?id=0&model=vits\r\n\r\n## POST\r\n\r\n- See `api_test.py`\r\n\r\n## API KEY\r\n\r\nSet `api_key_enabled: true` in `config.yaml` to enable API key authentication.\r\nAfter enabling it, you need to add the `api_key` parameter in GET requests and add the `X-API-KEY` parameter in the header for POST requests.\r\n\r\n# Parameter\r\n\r\n## VITS\r\n\r\n| Name               | Parameter    | Is must | Default           | Type  | Instruction                                                  |\r\n| ------------------ | ------------ | ------- | ----------------- | ----- | ------------------------------------------------------------ |\r\n| Synthesized text   | text         | true    |                   | str   | Text needed for voice synthesis.                             |\r\n| Speaker ID         | id           | false   | From `config.yaml` | int   | The speaker ID.                                              |\r\n| Audio format       | format       | false   | From `config.yaml` | str   | Support for wav,ogg,silk,mp3,flac                            |\r\n| Text language      | lang         | false   | From `config.yaml` | str   | The language of the text to be synthesized. Available options include auto, zh, ja, and mix. When lang=mix, the text should be wrapped in [ZH] or [JA].The default mode is auto, which automatically detects the language of the text |\r\n| Audio length       | length       | false   | From `config.yaml` | float | Adjusts the length of the synthesized speech, which is equivalent to adjusting the speed of the speech. The larger the value, the slower the speed. |\r\n| Noise              | noise        | false   | From `config.yaml` | float | Sample noise, controlling the randomness of the synthesis.   |\r\n| SDP noise          | noisew       | false   | From `config.yaml` | float | Stochastic Duration Predictor noise, controlling the length of phoneme pronunciation. |\r\n| Segment Size       | segment_size | false   | From `config.yaml` | int   | Divide the text into paragraphs based on punctuation marks, and combine them into one paragraph when the length exceeds segment_size. If segment_size\u003C=0, the text will not be divided into paragraphs. |\r\n| Streaming response | streaming    | false   | false             | bool  | Streamed synthesized speech with faster initial response.    |\r\n\r\n## VITS voice conversion\r\n\r\n| Name           | Parameter   | Is must | Default | Type | Instruction                                               |\r\n| -------------- | ----------- | ------- | ------- | ---- | --------------------------------------------------------- |\r\n| Uploaded Audio | upload      | true    |         | file | The audio file to be uploaded. It should be in wav or ogg |\r\n| Source Role ID | original_id | true    |         | int  | The ID of the role used to upload the audio file.         |\r\n| Target Role ID | target_id   | true    |         | int  | The ID of the target role to convert the audio to.        |\r\n\r\n## HuBert-VITS\r\n\r\n| Name              | Parameter | Is must | Default | Type  | Instruction                                                  |\r\n| ----------------- | --------- | ------- | ------- | ----- | ------------------------------------------------------------ |\r\n| Uploaded Audio    | upload    | true    |         | file  | The audio file to be uploaded. It should be in wav or ogg format. |\r\n| Target speaker ID | id        | true    |         | int   | The target  speaker ID.                                      |\r\n| Audio format      | format    | true    |         | str   | wav,ogg,silk                                                 |\r\n| Audio length      | length    | true    |         | float | Adjusts the length of the synthesized speech, which is equivalent to adjusting the speed of the speech. The larger the value, the slower the speed. |\r\n| Noise             | noise     | true    |         | float | Sample noise, controlling the randomness of the synthesis.   |\r\n| sdp noise         | noisew    | true    |         | float | Stochastic Duration Predictor noise, controlling the length of phoneme pronunciation. |\r\n\r\n## W2V2-VITS\r\n\r\n| Name                | Parameter    | Is must | Default           | Type  | Instruction                                                  |\r\n| ------------------- | ------------ | ------- | ----------------- | ----- | ------------------------------------------------------------ |\r\n| Synthesized text    | text         | true    |                   | str   | Text needed for voice synthesis.                             |\r\n| Speaker ID          | id           | false   | From `config.yaml` | int   | The speaker ID.                                              |\r\n| Audio format        | format       | false   | From `config.yaml` | str   | Support for wav,ogg,silk,mp3,flac                            |\r\n| Text language       | lang         | false   | From `config.yaml` | str   | The language of the text to be synthesized. Available options include auto, zh, ja, and mix. When lang=mix, the text should be wrapped in [ZH] or [JA].The default mode is auto, which automatically detects the language of the text |\r\n| Audio length        | length       | false   | From `config.yaml` | float | Adjusts the length of the synthesized speech, which is equivalent to adjusting the speed of the speech. The larger the value, the slower the speed. |\r\n| Noise               | noise        | false   | From `config.yaml` | float | Sample noise, controlling the randomness of the synthesis.   |\r\n| SDP noise           | noisew       | false   | From `config.yaml` | float | Stochastic Duration Predictor noise, controlling the length of phoneme pronunciation. |\r\n| Segment Size        | segment_size | false   | From `config.yaml` | int   | Divide the text into paragraphs based on punctuation marks, and combine them into one paragraph when the length exceeds segment_size. If segment_size\u003C=0, the text will not be divided into paragraphs. |\r\n| Dimensional emotion | emotion      | false   | 0                 | int   | The range depends on the emotion reference file in npy format, such as the  range of the [innnky](https:\u002F\u002Fhuggingface.co\u002Fspaces\u002Finnnky\u002Fnene-emotion\u002Ftree\u002Fmain)'s model all_emotions.npy, which is 0-5457. |\r\n\r\n## Dimensional emotion\r\n\r\n| Name           | Parameter | Is must | Default | Type | Instruction                                                  |\r\n| -------------- | --------- | ------- | ------- | ---- | ------------------------------------------------------------ |\r\n| Uploaded Audio | upload    | true    |         | file | Return the npy file that stores the dimensional emotion vectors. |\r\n\r\n## Bert-VITS2\r\n\r\n| Name             | Parameter       | Is must | Default           | Type  | Instruction                                                  |\r\n| ---------------- | --------------- | ------- | ----------------- | ----- | ------------------------------------------------------------ |\r\n| Synthesized text | text            | true    |                   | str   | Text needed for voice synthesis.                             |\r\n| Speaker ID       | id              | false   | From `config.yaml` | int   | The speaker ID.                                              |\r\n| Audio format     | format          | false   | From `config.yaml` | str   | Support for wav,ogg,silk,mp3,flac                            |\r\n| Text language    | lang            | false   | From `config.yaml` | str   | \"Auto\" is a mode for automatic language detection and is also the default mode. However, it currently only supports detecting the language of an entire text passage and cannot distinguish languages on a per-sentence basis. The other available language options are \"zh\" and \"ja\". |\r\n| Audio length     | length          | false   | From `config.yaml` | float | Adjusts the length of the synthesized speech, which is equivalent to adjusting the speed of the speech. The larger the value, the slower the speed. |\r\n| Noise            | noise           | false   | From `config.yaml` | float | Sample noise, controlling the randomness of the synthesis.   |\r\n| SDP noise        | noisew          | false   | From `config.yaml` | float | Stochastic Duration Predictor noise, controlling the length of phoneme pronunciation. |\r\n| Segment Size     | segment_size    | false   | From `config.yaml` | int   | Divide the text into paragraphs based on punctuation marks, and combine them into one paragraph when the length exceeds segment_size. If segment_size\u003C=0, the text will not be divided into paragraphs. |\r\n| SDP\u002FDP mix ratio | sdp_ratio       | false   | From `config.yaml` | int   | The theoretical proportion of SDP during synthesis, the higher the ratio, the larger the variance in synthesized voice tone. |\r\n| Emotion          | emotion         | false   | From `config.yaml` | int | Available for Bert-VITS2 v2.1, ranging from 0 to 9           |\r\n| Emotion reference Audio | reference_audio | false   | None              |       | Bert-VITS2 v2.1 uses reference audio to control the synthesized audio's emotion |\r\n|Text Prompt|text_prompt|false|From `config.yaml`|str|Bert-VITS2 v2.2 text prompt used for emotion control|\r\n|Style Text|style_text|false|From `config.yaml`|str|Bert-VITS2 v2.3 text prompt used for emotion control|\r\n|Style Text Weight|style_weight|false|From `config.yaml`|float|Bert-VITS2 v2.3 text prompt weight used for prompt weighting|\r\n| Streaming response | streaming    | false   | false             | bool  | Streamed synthesized speech with faster initial response.    |\r\n\r\n## GPT-SoVITS Speech Synthesis\r\n\r\n| Name         | Parameter       | Is must | Default               | Type  | Instruction                                                  |\r\n| ------------ | --------------- | ------- | --------------------- | ----- | ------------------------------------------------------------ |\r\n| Synthesized text     | text            | true    |                       | str   | Text needed for voice synthesis.                                         |\r\n| Speaker ID       | id              | false   | From `config.yaml` | int   | Speaker ID. In GPT-SoVITS, each model serves as a Speaker ID, and the voice is switched by reference audio presets. |\r\n| Audio format     | format          | false   | From `config.yaml` | str   | Support for wav, ogg, silk, mp3, flac                                    |\r\n| Text language     | lang            | false   | From `config.yaml` | str   | \"auto\" is the automatic language detection mode, which is also the default mode. However, it currently only supports recognizing the language of the entire text passage, and cannot distinguish each sentence. |\r\n| Reference Audio     | reference_audio | false   | None                  |       | reference_audio is required, but it can be replaced by preset. |\r\n| Reference Audio Text | prompt_text     | false   | From `config.yaml` | float | Need to be consistent with the actual text of the reference audio.       |\r\n| Reference Audio Language | prompt_lang     | false   | From `config.yaml` | str   | Defaults to auto for automatic text language recognition. If recognition fails, manually fill in, zh for Chinese, ja for Japanese, en for English. |\r\n| Reference Audio Preset | preset          | false   | default               | str   | Replace the reference audio with pre-set presets, multiple presets can be set.           |\r\n\r\n\r\n## SSML (Speech Synthesis Markup Language)\r\n\r\nSupported Elements and Attributes\r\n\r\n`speak` Element\r\n\r\n| Attribute    | Instruction                                                  | Is must |\r\n| ------------ | ------------------------------------------------------------ | ------- |\r\n| id           | Default value is retrieved From `config.yaml`                 | false   |\r\n| lang         | Default value is retrieved From `config.yaml`                 | false   |\r\n| length       | Default value is retrieved From `config.yaml`                 | false   |\r\n| noise        | Default value is retrieved From `config.yaml`                 | false   |\r\n| noisew       | Default value is retrieved From `config.yaml`                 | false   |\r\n| segment_size | Splits text into segments based on punctuation marks. When the sum of segment lengths exceeds `segment_size`, it is treated as one segment. `segment_size\u003C=0` means no segmentation. The default value is 0. | false   |\r\n| model_type   | Default is VITS. Options: W2V2-VITS, BERT-VITS2              | false   |\r\n| emotion      | Only effective when using W2V2-VITS . The range depends on the npy emotion reference file. | false   |\r\n| sdp_ratio    | Only effective when using BERT-VITS2 .                       | false   |\r\n\r\n`voice` Element\r\n\r\nHigher priority than `speak`.\r\n\r\n| Attribute    | Instruction                                                  | Is must |\r\n| ------------ | ------------------------------------------------------------ | ------- |\r\n| id           | Default value is retrieved From `config.yaml`                 | false   |\r\n| lang         | Default value is retrieved From `config.yaml`                 | false   |\r\n| length       | Default value is retrieved From `config.yaml`                 | false   |\r\n| noise        | Default value is retrieved From `config.yaml`                 | false   |\r\n| noisew       | Default value is retrieved From `config.yaml`                 | false   |\r\n| segment_size | Splits text into segments based on punctuation marks. When the sum of segment lengths exceeds `segment_size`, it is treated as one segment. `segment_size\u003C=0` means no segmentation. The default value is 0. | false   |\r\n| model_type   | Default is VITS. Options: W2V2-VITS, BERT-VITS2              | false   |\r\n| emotion      | Only effective when using W2V2-VITS . The range depends on the npy emotion reference file. | false   |\r\n| sdp_ratio    | Only effective when using BERT-VITS2 .                       | false   |\r\n\r\n`break` Element\r\n\r\n| Attribute | Instruction                                                  | Is must |\r\n| --------- | ------------------------------------------------------------ | ------- |\r\n| strength  | x-weak, weak, medium (default), strong, x-strong             | false   |\r\n| time      | The absolute duration of a pause in seconds (such as `2s`) or milliseconds (such as `500ms`). Valid values range from 0 to 5000 milliseconds. If you set a value greater than the supported maximum, the service will use `5000ms`. If the `time` attribute is set, the `strength` attribute is ignored. | false   |\r\n\r\n| Strength | Relative Duration |\r\n| :------- | :---------------- |\r\n| x-weak   | 250 ms            |\r\n| weak     | 500 ms            |\r\n| medium   | 750 ms            |\r\n| strong   | 1000 ms           |\r\n| x-strong | 1250 ms           |\r\n\r\n## Reading\r\n\r\n| Name                                | Parameter     | Is must | Default                     | Type | Instruction                                                  |\r\n| ----------------------------------- | ------------- | ------- | --------------------------- | ---- | ------------------------------------------------------------ |\r\n| Synthesis Text                      | text          | true    |                             | str  | The text to be synthesized into speech.                      |\r\n| Interlocutor Model Type             | in_model_type | false   | Obtained from `config.yaml` | str  |                                                              |\r\n| Interlocutor ID                     | in_id         | false   | Obtained from `config.yaml` | int  |                                                              |\r\n| Interlocutor Reference Audio Preset | preset        | false   | default                     | str  | Replace the reference audio with preset settings, which can be set to multiple presets in advance. |\r\n| Narrator Model Type                 | nr_model_type | false   | Obtained from `config.yaml` | str  |                                                              |\r\n| Narrator ID                         | nr_id         | false   | Obtained from `config.yaml` | int  |                                                              |\r\n| Narrator Reference Audio Preset     | preset        | false   | default                     | str  | Replace the reference audio with preset settings, which can be set to multiple presets in advance. |\r\n| Audio Format                        | format        | false   | Obtained from `config.yaml` | str  | Supports wav, ogg, silk, mp3, flac                           |\r\n| Text Language                       | lang          | false   | Obtained from `config.yaml` | str  | 'auto' for automatic language detection mode, which is also the default mode. However, currently, it only supports recognizing the language of the entire text and cannot distinguish each sentence. |\r\n| Reference Audio Preset              | preset        | false   | default                     | str  | Replace the reference audio with preset settings, which can be set to multiple presets in advance. |\r\n\r\nThe other parameters of the model will use the default parameters of the corresponding model in the config.yaml file.\r\n\r\n\r\n\r\n## Example\r\n\r\nSee `api_test.py`\r\n\r\n# Communication\r\n\r\nLearning and communication,now there is only Chinese [QQ group](https:\u002F\u002Fqm.qq.com\u002Fcgi-bin\u002Fqm\u002Fqr?k=-1GknIe4uXrkmbDKBGKa1aAUteq40qs_&jump_from=webapi&authKey=x5YYt6Dggs1ZqWxvZqvj3fV8VUnxRyXm5S5Kzntc78+Nv3iXOIawplGip9LWuNR\u002F)\r\n\r\n# Acknowledgements\r\n\r\n- vits:https:\u002F\u002Fgithub.com\u002Fjaywalnut310\u002Fvits\r\n- MoeGoe:https:\u002F\u002Fgithub.com\u002FCjangCjengh\u002FMoeGoe\r\n- emotional-vits:https:\u002F\u002Fgithub.com\u002Finnnky\u002Femotional-vits\r\n- vits-uma-genshin-honkai:https:\u002F\u002Fhuggingface.co\u002Fspaces\u002Fzomehwh\u002Fvits-uma-genshin-honkai\r\n- vits_chinese:https:\u002F\u002Fgithub.com\u002FPlayVoice\u002Fvits_chinese\r\n- Bert_VITS2:https:\u002F\u002Fgithub.com\u002Ffishaudio\u002FBert-VITS2\r\n- GPT-SoVITS:https:\u002F\u002Fgithub.com\u002FRVC-Boss\u002FGPT-SoVITS\r\n\r\n# Thank You to All Contributors\r\n\r\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fartrajz\u002Fvits-simple-api\u002Fgraphs\u002Fcontributors\" target=\"_blank\">\r\n  \u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002FArtrajz_vits-simple-api_readme_d3d5020b2a1b.png\"\u002F>\u003C\u002Fa>\r\n","\u003Cdiv class=\"title\" align=center>\n    \u003Ch1>vits-simple-api\u003C\u002Fh1>\n\t\u003Cdiv>轻松调用 vits API\u003C\u002Fdiv>\n    \u003Cbr\u002F>\n    \u003Cbr\u002F>\n    \u003Cp>\n        \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002FArtrajz\u002Fvits-simple-api\">\n    \t\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fpython-3.10-green\">\n        \u003Ca href=\"https:\u002F\u002Fhub.docker.com\u002Fr\u002Fartrajz\u002Fvits-simple-api\">\n            \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fdocker\u002Fpulls\u002Fartrajz\u002Fvits-simple-api\">\u003C\u002Fa>\n    \u003C\u002Fp>\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fblob\u002Fmain\u002FREADME.md\">英文文档\u003C\u002Fa>|\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fblob\u002Fmain\u002FREADME_zh.md\">中文文档\u003C\u002Fa>\n    \u003Cbr\u002F>\n\u003C\u002Fdiv>\n\n\n\n\n\n# 功能\n\n- [x] VITS 文本转语音、语音转换\n- [x] HuBert-soft VITS\n- [x] [vits_chinese](https:\u002F\u002Fgithub.com\u002FPlayVoice\u002Fvits_chinese)\n- [x] [Bert-VITS2](https:\u002F\u002Fgithub.com\u002FStardust-minus\u002FBert-VITS2)\n- [x] W2V2 VITS \u002F [emotional-vits](https:\u002F\u002Fgithub.com\u002Finnnky\u002Femotional-vits) 多维情感模型\n- [x] [GPT-SoVITS](https:\u002F\u002Fgithub.com\u002FRVC-Boss\u002FGPT-SoVITS)\n- [x] 支持加载多个模型\n- [x] 自动语言识别与处理，可根据模型的 cleaner 设置语言类型识别范围，支持自定义语言类型范围\n- [x] 自定义默认参数\n- [x] 长文本批量处理\n- [x] GPU 加速推理\n- [x] SSML（语音合成标记语言）正在开发中...\n\n\n## 在线演示\n\n[![Hugging Face Spaces](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F%F0%9F%A4%97%20Hugging%20Face-Spaces-blue)](https:\u002F\u002Fhuggingface.co\u002Fspaces\u002FArtrajz\u002Fvits-simple-api) 感谢 Hugging Face！\n\n[Colab Notebook](https:\u002F\u002Fcolab.research.google.com\u002Fdrive\u002F1uBkMy0UjLE3C1zvxZ7NPPc3K74v4B6zw)\n\n请注意，不同的 ID 可能支持不同的语言。[演讲者](https:\u002F\u002Fartrajz-vits-simple-api.hf.space\u002Fvoice\u002Fspeakers)\n\n- `https:\u002F\u002Fartrajz-vits-simple-api.hf.space\u002Fvoice\u002Fvits?text=你好,こんにちは&id=164`\n- `https:\u002F\u002Fartrajz-vits-simple-api.hf.space\u002Fvoice\u002Fvits?text=Difficult the first time, easy the second.&id=4`\n- 兴奋的：`https:\u002F\u002Fartrajz-vits-simple-api.hf.space\u002Fvoice\u002Fw2v2-vits?text=こんにちは&id=3&emotion=111`\n- 轻声细语的：`https:\u002F\u002Fartrajz-vits-simple-api.hf.space\u002Fw2v2-vits?text=こんにちは&id=3&emotion=2077`\n\nhttps:\u002F\u002Fuser-images.githubusercontent.com\u002F73542220\u002F237995061-c1f25b4e-dd86-438a-9363-4bb1fe65b425.mov\n\n# 部署\n\n有两种部署方式可供选择。无论您选择哪种方式，部署后都需要导入模型才能使用该应用。\n\n## Docker 部署（推荐用于 Linux）\n\n### 第一步：拉取 Docker 镜像\n\n运行以下命令以拉取 Docker 镜像。按照脚本中的提示选择需要下载的文件并拉取镜像：\n\n```bash\nbash -c \"$(wget -O- https:\u002F\u002Fraw.githubusercontent.com\u002FArtrajz\u002Fvits-simple-api\u002Fmain\u002Fvits-simple-api-installer-latest.sh)\"\n```\n\n项目配置文件和模型文件夹的默认路径为 `\u002Fusr\u002Flocal\u002Fvits-simple-api\u002F`。\n\n### 第二步：启动\n\n运行以下命令以启动容器：\n\n```bash\ndocker-compose up -d\n```\n\n### 镜像更新\n\n要更新镜像，运行以下命令：\n\n```bash\ndocker-compose pull\n```\n\n然后重启容器：\n\n```bash\ndocker-compose up -d\n```\n\n## 虚拟环境部署\n\n### 第一步：克隆项目\n\n使用以下命令克隆项目仓库：\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api.git\n```\n\n### 第二步：安装 Python 依赖\n\n建议为此项目使用 Python 3.10 的虚拟环境。运行以下命令以安装项目所需的 Python 依赖：\n\n如果在安装某些依赖时遇到问题，请参阅下方的常见问题说明。\n\n```bash\npip install -r requirements.txt\n```\n\n### 第三步：启动\n\n运行以下命令以启动程序：\n\n```bash\npython app.py\n```\n\n## Windows 快速部署包\n\n### 第一步：下载并解压部署包\n\n前往 [发布页面](https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Freleases)，下载最新的部署包。解压下载的文件。\n\n由于压缩原因（以及 Github 发布限制单个文件大小为 2GB），部分可选的依赖模型并未包含在部署包中，这些通常会在加载相应声音模型时由程序**自动**下载（如果所加载的模型需要）。若程序未自动下载依赖模型，或发现成功加载的声音模型为空，请阅读下方的**故障排除——成功加载的模型为空**部分。\n\n### 第二步：启动\n\n运行 `start.bat` 以启动程序。\n\n## 一键云部署\n\n该项目镜像已部署在 Compshare 上。无需任何配置，开箱即用。免费注册即可享受 5 小时 RTX 4090 或 10 小时 RTX 3080 Ti 的体验。[点击访问](https:\u002F\u002Fwww.compshare.cn\u002Fimages\u002FjZtOlBLHJi5K?referral_code=JqaheomBz8wCDWeUkpDSDF&ytag=GPU_yy_gh_vits)\n\n## 模型加载\n\n### 第一步：下载 VITS 模型\n下载 VITS 模型文件，并将其放置在 `data\u002Fmodels` 文件夹中。\n\n### 第二步：加载模型\n\n#### 自动加载模型\n\n自 0.6.6 版本起，默认行为是自动加载 `data\u002Fmodels` 文件夹中的所有模型，这使得初学者使用起来更加方便。\n\n（如果是第一次使用且没有其他特殊需求，则无需了解如何手动加载模型）\n\n#### 手动加载模型\n\n首次启动后会生成一个 `config.yaml` 配置文件。您需要将 `tts_config.auto_load` 修改为 `false`，以启用手动加载模式。\n\n您可以在 `config.yaml` 中修改 `tts_model_config.tts_modes`，或者通过浏览器中的管理面板进行相应设置。\n\n**注意：自 0.6.6 版本起，模型加载路径已发生更改，请按照以下步骤重新配置模型路径！**\n\n路径可以是绝对路径或相对路径。如果是相对路径，则从项目根目录下的 `data\u002Fmodels` 文件夹开始计算。\n\n例如，如果 `data\u002Fmodels` 文件夹中有如下文件：\n\n```\n├─model1\n│  │─G_1000.pth\n│  └─config.json\n└─model2\n   │─G_1000.pth\n   └─config.json\n```\n\n则在 YAML 文件中按如下方式填写配置：\n\n```yaml\ntts_model_config:\n  models_dir: models\n  auto_load: false\n  tts_models:\n  - config_path: model1\u002Fconfig.json\n    vits_path: model1\u002FG_1000.pth\n  - config_path: model2\u002Fconfig.json\n    vits_path: model2\u002FG_1000.pth\n  # GPT-SoVITS\n  - vits_path: gpt_sovits1\u002Fmodel1_e8_s11536.pth\n    t2s_path: gpt_sovits1\u002Fmodel1-e15.ckpt\n  - vits_path: gpt_sovits2\u002Fmodel2_e8_s11536.pth\n    t2s_path: gpt_sovits2\u002Fmodel2-e15.ckpt\n```\n\n通过管理面板加载模型很方便，但如果您想加载位于 `data\u002Fmodels` 文件夹之外的模型，则只能通过修改 `config.yaml` 配置文件来实现。具体方法是直接提供绝对路径。\n\n绝对路径示例：\n\n```yaml\ntts_model_config:\n  models_dir: models\n  auto_load: false\n  tts_models:\n  - config_path: D:\u002F\u002Fmodel3\u002Fconfig.json\n    vits_path: D:\u002F\u002Fmodel3\u002FG_1000.pth\n```\n\n- `models_dir` 是相对于 data 目录的模型文件夹，默认值为 \"models\"。当 `auto_load` 设置为 true 时，`models_dir` 目录下的所有模型都会被加载。\n\n#### 其他模型\n\n下载 BERT 模型和情感模型后，分别将其放置在 `data\u002Fbert` 和 `data\u002Femotional` 文件夹中，并根据对应名称插入即可。\n\n# GPU 加速\n\n## Windows\n### 安装 CUDA\n查看您的显卡支持的最高 CUDA 版本：\n```bash\nnvidia-smi\n```\n以 CUDA 11.7 为例，可从 [官方网站](https:\u002F\u002Fdeveloper.nvidia.com\u002Fcuda-11-7-0-download-archive?target_os=Windows&amp;target_arch=x86_64&amp;target_version=10&amp;target_type=exe_local) 下载。\n### 安装 GPU 版本的 PyTorch\n\n[PyTorch 官网](https:\u002F\u002Fpytorch.org\u002F) 提供了安装指南：\n\n```bash\npip install torch --index-url https:\u002F\u002Fdownload.pytorch.org\u002Fwhl\u002Fcu118\n```\n\n## Linux\n安装过程类似，但我没有环境可以测试。\n\n# WebUI\n\n## 推理前端\n\nhttp:\u002F\u002F127.0.0.1:23456\n\n*默认端口为 23456，也可自行修改。\n\n## 管理后台\n\n默认地址为 http:\u002F\u002F127.0.0.1:23456\u002Fadmin。\n\n**首次启动后，可在 config.yaml 文件中搜索 'admin' 查找初始用户名和密码。**\n\n# 功能选项说明\n\n## 禁用管理后台\n\n管理后台允许加载和卸载模型，并且具备登录认证功能。为了进一步提升安全性，您可以在 `config.yaml` 中禁用管理后台：\n\n```yaml\n'IS_ADMIN_ENABLED': !!bool 'false'\n```\n\n这一额外措施有助于确保管理后台对公网不可访问时的绝对安全。\n\n## Bert-VITS2 配置及语言\u002FBert 模型使用\n\n自 Bert-VITS2 v2.0 起，一个模型需要加载三种不同的语言 Bert 模型。如果您仅需使用一种或两种语言，可以在模型数据部分的 `config.json` 文件中添加 `lang` 参数。值 `[\"zh\"]` 表示该模型仅使用中文，并会加载中文 Bert 模型；值 `[\"zh\", \"ja\"]` 则表示同时使用中文和日语双语模型，只会加载中日文 Bert 模型。其他语言组合也遵循相同规则。\n\n示例：\n\n```json\n\"data\": {\n  \"lang\": [\"zh\", \"ja\"],\n  \"training_files\": \"filelists\u002Ftrain.list\",\n  \"validation_files\": \"filelists\u002Fval.list\",\n  \"max_wav_value\": 32768.0,\n  ...\n}\n```\n\n## 自定义中文多音字词典\n\n如果遇到多音字发音不准确的问题，可以尝试通过以下方法解决。\n\n在 `data` 目录下创建并打开 `phrases_dict.txt` 文件，用于添加多音字词汇。\n\n```python\n{\n  \"一骑当千\": [[\"yí\"], [\"jì\"], [\"dāng\"], [\"qiān\"]],\n}\n```\n\n## GPT-SoVITS 参考音频预设\n\n在 `config.yaml` 文件中找到 GPT-SoVITS 的配置，在 `presets` 部分添加预设。可添加多个预设，键作为预设名称。以下是两个默认预设：default 和 default2：\n\n```yaml\ngpt_sovits_config:\n  hz: 50\n  is_half: false\n  id: 0\n  lang: auto\n  format: wav\n  segment_size: 50\n  presets:\n    default:\n      refer_wav_path: null\n      prompt_text: null\n      prompt_lang: auto\n    default2:\n      refer_wav_path: null\n      prompt_text: null\n      prompt_lang: auto\n```\n\n## 朗读 API\n\n已在 [legado](https:\u002F\u002Fgithub.com\u002Fgedoor\u002Flegado) 中测试。\n\n可使用多种模型进行朗读，包括 VITS、Bert-VITS2、GPT-SoVITS。以 `in` 开头的参数用于配置引号内文本的发音人，而以 `nr` 开头的参数则用于配置旁白。\n\n要使用 GPT-SoVITS，需提前在 `config.yaml` 文件的 `presets` 部分配置参考音频，并在下方 URL 中修改预设。\n\nURL 中的 IP 地址可在 API 启动后获取，通常为以 192.168 开头的局域网 IP。\n\n修改完成后，选择朗读引擎、添加朗读引擎、粘贴源文本并启用朗读引擎。\n\n```js\n{\n  \"concurrentRate\": \"1\",\n  \"contentType\": \"audio\u002Fwav\",\n  \"enabledCookieJar\": false,\n  \"header\": \"\",\n  \"id\": 1709643305070,\n  \"lastUpdateTime\": 1709821070082,\n  \"loginCheckJs\": \"\",\n  \"loginUi\": \"\",\n  \"loginUrl\": \"\",\n  \"name\": \"vits-simple-api\",\n  \"url\": \"http:\u002F\u002F192.168.xxx.xxx:23456\u002Fvoice\u002Freading?text={{java.encodeURI(speakText)}}&in_model_type=GPT-SOVITS&in_id=0&in_preset=default&nr_model_type=BERT-VITS2&nr_id=0&nr_preset=default&format=wav&lang=zh\"\n}\n```\n\n\n\n# 常见问题\n\n## Bert-VITS2 版本兼容性\n\n为确保与 Bert-VITS2 模型的兼容性，请修改 `config.json` 文件，添加版本参数 `\"version\": \"x.x.x\"`。例如，若模型版本为 1.0.1，则配置文件应写成：\n\n```json\n{\n  \"version\": \"1.0.1\",\n  \"train\": {\n    \"log_interval\": 10,\n    \"eval_interval\": 100,\n    \"seed\": 52,\n    ...\n  }\n}\n```\n\n请注意，对于中文增强版，版本应改为 `extra` 或 `zh-clap`；而对于增强修复版，版本则应为 `2.4` 或 `extra-fix`。\n\n## 故障排查——成功加载的模型为空\n\n首先，请检查您的程序目录是否为**纯英文路径**（不能包含任何中文或特殊字符），否则即使程序未报错，也可能出现无法加载模型的情况。\n\n其次，请确认您的模型是否放置正确（参见“手动加载模型”部分）。您的模型不应直接放在 `data\u002Fmodels` 目录下，而应放置在 models 目录下的一个子文件夹中（该文件夹名称可任意，但不能包含特殊字符），每个声音模型对应一个独立的子文件夹。\n\n最后，请查看日志中是否有类似“下载失败”的提示信息，您可参考下文关于“手动放置依赖模型”的说明。\n\n### 手动放置依赖模型\n\n- 下载 https:\u002F\u002Fhf-mirror.com\u002FTencentGameMate\u002Fchinese-hubert-base\u002Fresolve\u002Fmain\u002Fpytorch_model.bin，并将其放置于 `data\\hubert\\chinese_hubert_base`。\n- 下载 https:\u002F\u002Fhf-mirror.com\u002Fhfl\u002Fchinese-roberta-wwm-ext-large\u002Fresolve\u002Fmain\u002Fpytorch_model.bin，并将其放置于 `data\\bert\\chinese-roberta-wwm-ext-large`。\n- 下载 https:\u002F\u002Fopeni.pcl.ac.cn\u002FStardust_minus\u002FBert-VITS2\u002Fmodelmanage\u002Fmodel_filelist_tmpl?name=G2PWModel-v2-onnx，并将其放置于 `data\\G2PWModel`。\n\n若您不想从 openi.pcl.ac.cn 平台下载（大文件无法直接通过浏览器获取），也可在此处下载：https:\u002F\u002Fhuggingface.co\u002Frestsun2028\u002FB2ZHTH\u002Fblob\u002Fb0a8cc2c69c6d1962c679ea2887080a0a86e6bbf\u002Fg2pW\u002Fg2pW.onnx，获取 `g2pW.onnx` 文件。\n\n# API\n\n## GET\n\n#### 发言人列表\n\n- GET http:\u002F\u002F127.0.0.1:23456\u002Fvoice\u002Fspeakers\n\n  返回角色 ID 与发言人姓名的映射表。\n\n#### VITS 语音合成\n\n- GET http:\u002F\u002F127.0.0.1:23456\u002Fvoice\u002Fvits?text=text\n\n  若未指定其他参数，则使用默认值。\n\n- GET http:\u002F\u002F127.0.0.1:23456\u002Fvoice\u002Fvits?text=[ZH]text[ZH][JA]text[JA]&lang=mix\n\n  当 `lang=mix` 时，文本需进行标注。\n\n- GET http:\u002F\u002F127.0.0.1:23456\u002Fvoice\u002Fvits?text=text&id=142&format=wav&lang=zh&length=1.4\n\n   文本为“text”，角色 ID 为 142，音频格式为 wav，文本语言为 zh，语音长度为 1.4，其余参数均为默认值。\n\n#### 检查\n\n- GET http:\u002F\u002F127.0.0.1:23456\u002Fvoice\u002Fcheck?id=0&model=vits\n\n## POST\n\n- 参见 `api_test.py`\n\n## API 密钥\n\n在 `config.yaml` 中将 `api_key_enabled: true` 设置为启用 API 密钥认证。启用后，GET 请求需添加 `api_key` 参数，POST 请求则需在 Header 中添加 `X-API-KEY` 参数。\n\n# 参数\n\n## VITS\n\n| 名称               | 参数    | 是否必填 | 默认值           | 类型  | 说明                                                  |\n| ------------------ | -------- | -------- | ---------------- | ----- | ----------------------------------------------------- |\n| 合成文本           | text     | 是       |                  | str   | 需要进行语音合成的文本。                              |\n| 发言人 ID          | id       | 否       | 来自 `config.yaml` | int   | 发言人的 ID。                                         |\n| 音频格式           | format   | 否       | 来自 `config.yaml` | str   | 支持 wav、ogg、silk、mp3、flac 等格式。              |\n| 文本语言           | lang     | 否       | 来自 `config.yaml` | str   | 待合成文本的语言。可选值包括 auto、zh、ja 和 mix。当 `lang=mix` 时，文本需用 [ZH] 或 [JA] 包裹。默认模式为 auto，即自动检测文本语言。 |\n| 音频长度           | length   | 否       | 来自 `config.yaml` | float | 调整合成语音的长度，相当于调整语音的速度。数值越大，速度越慢。 |\n| 噪声               | noise    | 否       | 来自 `config.yaml` | float | 样本噪声，用于控制合成的随机性。                    |\n| SDP 噪声           | noisew   | 否       | 来自 `config.yaml` | float | 随机持续时间预测器噪声，用于控制音素发音的长度。  |\n| 分段大小           | segment_size | 否       | 来自 `config.yaml` | int   | 根据标点符号将文本划分为若干段落，当长度超过 `segment_size` 时合并为一段。若 `segment_size\u003C=0`，则不进行分段。 |\n| 流式响应           | streaming | 否       | false             | bool  | 流式合成语音，初始响应更快。                        |\n\n## VITS 语音转换\n\n| 名称           | 参数   | 是否必填 | 默认值 | 类型 | 说明                                               |\n| -------------- | -------- | -------- | ------ | ---- | ---------------------------------------------------- |\n| 上传音频         | upload   | 是       |        | file | 需要上传的音频文件，格式应为 wav 或 ogg。          |\n| 源角色 ID        | original_id | 是       |        | int  | 上传音频所使用的角色 ID。                           |\n| 目标角色 ID      | target_id | 是       |        | int  | 转换目标角色的 ID。                                 |\n\n## HuBert-VITS\n\n| 名称              | 参数 | 是否必填 | 默认值 | 类型  | 说明                                                  |\n| ----------------- | ---- | -------- | ------ | ----- | ----------------------------------------------------- |\n| 上传音频          | upload | 是       |        | file  | 需要上传的音频文件，格式应为 wav 或 ogg。            |\n| 目标发言人 ID     | id   | 是       |        | int   | 目标发言人的 ID。                                     |\n| 音频格式          | format | 是       |        | str   | 支持 wav、ogg、silk 等格式。                         |\n| 音频长度          | length | 是       |        | float | 调整合成语音的长度，相当于调整语音的速度。数值越大，速度越慢。 |\n| 噪声              | noise  | 是       |        | float | 样本噪声，用于控制合成的随机性。                   |\n| sdp 噪声          | noisew | 是       |        | float | 随机持续时间预测器噪声，用于控制音素发音的长度。 |\n\n## W2V2-VITS\n\n| 名称                | 参数    | 是否必填 | 默认值           | 类型  | 说明                                                         |\n| ------------------- | -------- | ------- | ----------------- | ----- | ------------------------------------------------------------ |\n| 合成文本            | text     | 是      |                   | str   | 用于语音合成的文本。                                         |\n| 发声人ID            | id       | 否      | 来自 `config.yaml` | int   | 发声人的ID。                                                  |\n| 音频格式            | format   | 否      | 来自 `config.yaml` | str   | 支持wav、ogg、silk、mp3、flac等格式。                         |\n| 文本语言            | lang     | 否      | 来自 `config.yaml` | str   | 待合成文本的语言。可选值包括auto、zh、ja以及mix。当lang=mix时，文本需用[ZH]或[JA]括起来。默认模式为auto，即自动检测文本语言。 |\n| 音频长度            | length   | 否      | 来自 `config.yaml` | float | 调整合成语音的长度，相当于调整语音的速度。数值越大，速度越慢。 |\n| 噪声                | noise    | 否      | 来自 `config.yaml` | float | 样本噪声，用于控制合成的随机性。                             |\n| SDP噪声             | noisew   | 否      | 来自 `config.yaml` | float | 随机持续时间预测器噪声，用于控制音素发音的长度。           |\n| 分段大小            | segment_size | 否      | 来自 `config.yaml` | int   | 按标点符号将文本划分为若干段落，当某段长度超过segment_size时合并为一段。若segment_size≤0，则不进行分段。 |\n| 维度化情感          | emotion  | 否      | 0                 | int   | 取值范围取决于npy格式的情感参考文件，例如[innnky](https:\u002F\u002Fhuggingface.co\u002Fspaces\u002Finnnky\u002Fnene-emotion\u002Ftree\u002Fmain)模型的all_emotions.npy文件，其取值范围为0–5457。 |\n\n## 维度化情感\n\n| 名称           | 参数 | 是否必填 | 默认值 | 类型 | 说明                                                         |\n| -------------- | ---- | ------- | ------ | ---- | ------------------------------------------------------------ |\n| 上传音频         | upload | 是      |        | file | 返回存储维度化情感向量的npy文件。                           |\n\n## Bert-VITS2\n\n| 名称             | 参数       | 是否必填 | 默认值           | 类型  | 说明                                                         |\n| ---------------- | ---------- | ------- | ----------------- | ----- | ------------------------------------------------------------ |\n| 合成文本         | text       | 是      |                   | str   | 用于语音合成的文本。                                         |\n| 发声人ID         | id         | 否      | 来自 `config.yaml` | int   | 发声人的ID。                                                  |\n| 音频格式         | format     | 否      | 来自 `config.yaml` | str   | 支持wav、ogg、silk、mp3、flac等格式。                         |\n| 文本语言         | lang       | 否      | 来自 `config.yaml` | str   | “Auto”为自动语言检测模式，也是默认模式。但目前仅支持对整段文本进行语言检测，无法逐句区分语言。其他可用语言选项为“zh”和“ja”。 |\n| 音频长度         | length     | 否      | 来自 `config.yaml` | float | 调整合成语音的长度，相当于调整语音的速度。数值越大，速度越慢。 |\n| 噪声             | noise      | 否      | 来自 `config.yaml` | float | 样本噪声，用于控制合成的随机性。                             |\n| SDP噪声          | noisew     | 否      | 来自 `config.yaml` | float | 随机持续时间预测器噪声，用于控制音素发音的长度。           |\n| 分段大小         | segment_size | 否      | 来自 `config.yaml` | int   | 按标点符号将文本划分为若干段落，当某段长度超过segment_size时合并为一段。若segment_size≤0，则不进行分段。 |\n| SDP\u002FDP混合比例   | sdp_ratio  | 否      | 来自 `config.yaml` | int   | 合成过程中SDP的理论占比，比例越高，合成语音的音色变化越大。 |\n| 情感             | emotion    | 否      | 来自 `config.yaml` | int   | 适用于Bert-VITS2 v2.1，取值范围为0至9。                     |\n| 情感参考音频     | reference_audio | 否      | 无              |       | Bert-VITS2 v2.1利用参考音频来控制合成音频的情感。           |\n| 文本提示           | text_prompt | 否      | 来自 `config.yaml` | str   | Bert-VITS2 v2.2的文本提示，用于情感控制。                   |\n| 风格文本           | style_text | 否      | 来自 `config.yaml` | str   | Bert-VITS2 v2.3的文本提示，用于情感控制。                   |\n| 风格文本权重       | style_weight | 否      | 来自 `config.yaml` | float | Bert-VITS2 v2.3的文本提示权重，用于提示加权。               |\n| 流式响应           | streaming  | 否      | false             | bool  | 提供流式合成语音，初始响应更快。                            |\n\n## GPT-SoVITS 语音合成\n\n| 名称         | 参数       | 是否必填 | 默认值               | 类型  | 使用说明                                                  |\n| ------------ | ---------- | -------- | -------------------- | ----- | --------------------------------------------------------- |\n| 合成文本     | text       | 是       |                      | str   | 需要进行语音合成的文本。                                 |\n| 发音人 ID     | id         | 否       | 来自 `config.yaml`   | int   | 发音人 ID。在 GPT-SoVITS 中，每个模型都可视为一个发音人 ID，通过参考音频预设实现语音切换。 |\n| 音频格式     | format     | 否       | 来自 `config.yaml`   | str   | 支持 wav、ogg、silk、mp3、flac 等格式。                 |\n| 文本语言     | lang       | 否       | 来自 `config.yaml`   | str   | “auto”为自动语言检测模式，也是默认模式。但目前仅支持对整段文本的语言进行识别，无法区分每句话的语言。 |\n| 参考音频     | reference_audio | 否       | 无                   |       | 参考音频为必填项，但可用预设替代。                     |\n| 参考音频文本 | prompt_text | 否       | 来自 `config.yaml`   | float | 需与参考音频的实际文本保持一致。                       |\n| 参考音频语言 | prompt_lang | 否       | 来自 `config.yaml`   | str   | 默认为 auto，即自动识别文本语言。若识别失败，则需手动填写，zh 表示中文，ja 表示日语，en 表示英语。 |\n| 参考音频预设 | preset     | 否       | 默认               | str   | 用预设的参考音频替代原始参考音频，可设置多个预设。   |\n\n\n## SSML（语音合成标记语言）\n\n支持的元素与属性\n\n`speak` 元素\n\n| 属性    | 使用说明                                                  | 是否必填 |\n| ------- | --------------------------------------------------------- | ------- |\n| id      | 默认值从 `config.yaml` 获取                                | 否      |\n| lang    | 默认值从 `config.yaml` 获取                                | 否      |\n| length  | 默认值从 `config.yaml` 获取                                | 否      |\n| noise   | 默认值从 `config.yaml` 获取                                | 否      |\n| noisew  | 默认值从 `config.yaml` 获取                                | 否      |\n| segment_size | 根据标点符号将文本切分为若干片段。当各片段长度之和超过 `segment_size` 时，视为一个整体。若 `segment_size\u003C=0`，则不进行切分。默认值为 0。 | 否      |\n| model_type | 默认为 VITS。可选：W2V2-VITS、BERT-VITS2              | 否      |\n| emotion | 仅在使用 W2V2-VITS 时有效。取值范围取决于 npy 情感参考文件。 | 否      |\n| sdp_ratio | 仅在使用 BERT-VITS2 时有效。                             | 否      |\n\n`voice` 元素\n\n优先级高于 `speak`。\n\n| 属性    | 使用说明                                                  | 是否必填 |\n| ------- | --------------------------------------------------------- | ------- |\n| id      | 默认值从 `config.yaml` 获取                                | 否      |\n| lang    | 默认值从 `config.yaml` 获取                                | 否      |\n| length  | 默认值从 `config.yaml` 获取                                | 否      |\n| noise   | 默认值从 `config.yaml` 获取                                | 否      |\n| noisew  | 默认值从 `config.yaml` 获取                                | 否      |\n| segment_size | 根据标点符号将文本切分为若干片段。当各片段长度之和超过 `segment_size` 时，视为一个整体。若 `segment_size\u003C=0`，则不进行切分。默认值为 0。 | 否      |\n| model_type | 默认为 VITS。可选：W2V2-VITS、BERT-VITS2              | 否      |\n| emotion | 仅在使用 W2V2-VITS 时有效。取值范围取决于 npy 情感参考文件。 | 否      |\n| sdp_ratio | 仅在使用 BERT-VITS2 时有效。                             | 否      |\n\n`break` 元素\n\n| 属性 | 使用说明                                                  | 是否必填 |\n| ---- | --------------------------------------------------------- | ------- |\n| strength | x-weak、weak、medium（默认）、strong、x-strong             | 否      |\n| time   | 暂停的绝对持续时间，单位为秒（如 `2s`）或毫秒（如 `500ms`）。有效值范围为 0 至 5000 毫秒。若设置的值超过支持的最大值，服务将采用 `5000ms`。若同时设置了 `time` 属性，则忽略 `strength` 属性。 | 否      |\n\n| 强度 | 相对持续时间 |\n| ---- | -------------- |\n| x-weak | 250 毫秒        |\n| weak   | 500 毫秒        |\n| medium | 750 毫秒        |\n| strong | 1000 毫秒       |\n| x-strong | 1250 毫秒       |\n\n## 阅读\n\n| 名称                                | 参数     | 是否必填 | 默认值                     | 类型   | 说明                                                         |\n| ----------------------------------- | ---------- | -------- | -------------------------- | ------ | ------------------------------------------------------------ |\n| 合成文本                            | text       | 是       |                            | str    | 要合成语音的文本。                                           |\n| 对话模型类型                        | in_model_type | 否       | 从 `config.yaml` 获取       | str    |                                                              |\n| 对话ID                              | in_id      | 否       | 从 `config.yaml` 获取       | int    |                                                              |\n| 对话参考音频预设                    | preset     | 否       | default                    | str    | 将参考音频替换为预设设置，可预先设置多个预设。             |\n| 旁白模型类型                        | nr_model_type | 否       | 从 `config.yaml` 获取       | str    |                                                              |\n| 旁白ID                              | nr_id      | 否       | 从 `config.yaml` 获取       | int    |                                                              |\n| 旁白参考音频预设                    | preset     | 否       | default                    | str    | 将参考音频替换为预设设置，可预先设置多个预设。             |\n| 音频格式                            | format     | 否       | 从 `config.yaml` 获取       | str    | 支持 wav、ogg、silk、mp3、flac                             |\n| 文本语言                            | lang       | 否       | 从 `config.yaml` 获取       | str    | 'auto' 表示自动检测语言模式，这也是默认模式。但目前仅支持识别整段文本的语言，无法区分每句话的语言。 |\n| 参考音频预设                        | preset     | 否       | default                    | str    | 将参考音频替换为预设设置，可预先设置多个预设。             |\n\n模型的其他参数将使用 `config.yaml` 文件中对应模型的默认参数。\n\n## 示例\n\n请参见 `api_test.py`\n\n# 交流\n\n学习与交流，目前仅有中文 [QQ 群](https:\u002F\u002Fqm.qq.com\u002Fcgi-bin\u002Fqm\u002Fqr?k=-1GknIe4uXrkmbDKBGKa1aAUteq40qs_&jump_from=webapi&authKey=x5YYt6Dggs1ZqWxvZqvj3fV8VUnxRyXm5S5Kzntc78+Nv3iXOIawplGip9LWuNR\u002F)\n\n# 致谢\n\n- vits：https:\u002F\u002Fgithub.com\u002Fjaywalnut310\u002Fvits\n- MoeGoe：https:\u002F\u002Fgithub.com\u002FCjangCjengh\u002FMoeGoe\n- emotional-vits：https:\u002F\u002Fgithub.com\u002Finnnky\u002Femotional-vits\n- vits-uma-genshin-honkai：https:\u002F\u002Fhuggingface.co\u002Fspaces\u002Fzomehwh\u002Fvits-uma-genshin-honkai\n- vits_chinese：https:\u002F\u002Fgithub.com\u002FPlayVoice\u002Fvits_chinese\n- Bert_VITS2：https:\u002F\u002Fgithub.com\u002Ffishaudio\u002FBert-VITS2\n- GPT-SoVITS：https:\u002F\u002Fgithub.com\u002FRVC-Boss\u002FGPT-SoVITS\n\n# 感谢所有贡献者\n\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fartrajz\u002Fvits-simple-api\u002Fgraphs\u002Fcontributors\" target=\"_blank\">\n  \u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002FArtrajz_vits-simple-api_readme_d3d5020b2a1b.png\"\u002F>\u003C\u002Fa>","# vits-simple-api 快速上手指南\n\n## 环境准备\n\n### 系统要求\n- 推荐使用 **Linux** 或 **Windows 10\u002F11**\n- Python 3.10 及以上版本\n- GPU（可选，用于加速推理）\n\n### 前置依赖\n- Docker（推荐 Linux 用户使用）\n- Python 虚拟环境（推荐 Windows 用户使用）\n- CUDA 工具包（如需使用 GPU 加速，请安装对应版本的 CUDA 和 PyTorch）\n\n---\n\n## 安装步骤\n\n### 方法一：Docker 部署（推荐 Linux 用户）\n\n#### 步骤 1：拉取 Docker 镜像\n```bash\nbash -c \"$(wget -O- https:\u002F\u002Fraw.githubusercontent.com\u002FArtrajz\u002Fvits-simple-api\u002Fmain\u002Fvits-simple-api-installer-latest.sh)\"\n```\n\n#### 步骤 2：启动容器\n```bash\ndocker-compose up -d\n```\n\n#### 更新镜像\n```bash\ndocker-compose pull\ndocker-compose up -d\n```\n\n---\n\n### 方法二：虚拟环境部署（推荐 Windows 用户）\n\n#### 步骤 1：克隆项目\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api.git\n```\n\n#### 步骤 2：安装依赖\n```bash\npip install -r requirements.txt\n```\n\n#### 步骤 3：启动服务\n```bash\npython app.py\n```\n\n---\n\n### 方法三：Windows 一键部署包\n\n#### 步骤 1：下载并解压\n前往 [发布页面](https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Freleases) 下载最新部署包并解压。\n\n#### 步骤 2：启动程序\n运行 `start.bat` 启动程序。\n\n---\n\n## 基本使用\n\n### 模型加载\n\n将 VITS 模型文件放入 `data\u002Fmodels` 文件夹中。从版本 0.6.6 开始，默认会自动加载该目录下的所有模型。\n\n如果需要手动加载模型，修改 `config.yaml` 文件：\n\n```yaml\ntts_model_config:\n  models_dir: models\n  auto_load: false\n  tts_models:\n  - config_path: model1\u002Fconfig.json\n    vits_path: model1\u002FG_1000.pth\n```\n\n---\n\n### WebUI 访问\n\n- **前端界面（推理）**: http:\u002F\u002F127.0.0.1:23456\n- **管理后台（Admin）**: http:\u002F\u002F127.0.0.1:23456\u002Fadmin\n\n首次启动后，在 `config.yaml` 中搜索 `'admin'` 可找到初始用户名和密码。\n\n---\n\n### API 示例（在线演示）\n\n你可以通过以下链接测试 API 功能：\n\n- 默认模型：`https:\u002F\u002Fartrajz-vits-simple-api.hf.space\u002Fvoice\u002Fvits?text=你好,こんにちは&id=164`\n- 情绪模型：`https:\u002F\u002Fartrajz-vits-simple-api.hf.space\u002Fvoice\u002Fw2v2-vits?text=こんにちは&id=3&emotion=111`\n\n---\n\n### 使用 GPT-SoVITS\n\n在 `config.yaml` 中配置参考音频预设，并在 URL 中指定对应的预设名称即可使用 GPT-SoVITS 模型。\n\n---\n\n### 国内加速建议\n\n- 如果你在国内，可以使用国内镜像源来加速 pip 安装：\n  ```bash\n  pip install -i https:\u002F\u002Fpypi.tuna.tsinghua.edu.cn\u002Fsimple -r requirements.txt\n  ```\n\n- 对于 Docker 镜像拉取，也可以使用国内镜像加速器（如 DaoCloud、阿里云等）。","某配音工作室的开发者正在为一款互动式教育软件开发多语言语音合成功能，需要将大量中英文文本转换为自然流畅的语音，并支持不同情绪和语调的表达。\n\n### 没有 vits-simple-api 时\n- 需要手动配置多个语音模型，部署复杂且耗时，难以快速切换不同模型。\n- 缺乏统一接口，每次调用不同模型都需要编写不同的代码逻辑，维护成本高。\n- 处理长文本时容易出现断句不自然、语音不连贯的问题，需额外处理文本分段。\n- 不支持情绪控制，无法生成带有情感色彩的语音输出，影响用户体验。\n- 无法通过 HTTP 接口直接调用，需依赖本地服务或自建 API，限制了开发效率。\n\n### 使用 vits-simple-api 后\n- 支持一键加载多个语音模型，可快速切换不同语言和风格的语音模型，简化部署流程。\n- 提供统一的 HTTP 接口，开发者只需发送请求即可调用多种模型，无需修改底层逻辑。\n- 内置长文本批量处理功能，自动优化断句与语义衔接，提升语音输出的自然度。\n- 支持情绪参数调节，如通过 `emotion` 参数生成兴奋、低语等不同语气的语音，增强表达效果。\n- 可直接通过浏览器或 API 调用在线演示服务，便于测试与调试，加快开发周期。\n\nvits-simple-api 显著提升了多语言语音合成的开发效率与灵活性，使复杂需求得以快速实现。","https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002FArtrajz_vits-simple-api_6e8b5199.png","Artrajz","https:\u002F\u002Foss.gittoolsai.com\u002Favatars\u002FArtrajz_75d4b9a6.jpg",null,"artrajz16@gmail.com","https:\u002F\u002Fgithub.com\u002FArtrajz",[81,85,89,93,97,101,105],{"name":82,"color":83,"percentage":84},"Python","#3572A5",92.3,{"name":86,"color":87,"percentage":88},"HTML","#e34c26",3.4,{"name":90,"color":91,"percentage":92},"JavaScript","#f1e05a",2.6,{"name":94,"color":95,"percentage":96},"Shell","#89e051",1,{"name":98,"color":99,"percentage":100},"CSS","#663399",0.6,{"name":102,"color":103,"percentage":104},"Dockerfile","#384d54",0.1,{"name":106,"color":107,"percentage":108},"PowerShell","#012456",0,1048,134,"2026-04-04T12:05:16","AGPL-3.0","Linux, macOS, Windows","需要 NVIDIA GPU，显存 8GB+，CUDA 11.7+","16GB+",{"notes":117,"python":118,"dependencies":119},"建议使用虚拟环境部署，首次运行需下载约 5GB 模型文件。Windows 部署包可能需要手动下载部分依赖模型。","3.10",[120,121,122,123,124,125,126,127,128],"torch","transformers","accelerate","pydantic","uvicorn","fastapi","numpy","soundfile","tqdm",[36,38,15],[131,132,133,134,135,136],"bert-vits2","tts","vits","moegoe","gpt-sovits","tts-api","2026-03-27T02:49:30.150509","2026-04-06T05:37:44.743922",[140,145,149,154,159,164,169,174],{"id":141,"question_zh":142,"answer_zh":143,"source_url":144},5677,"如何在 Linux 环境下安装并配置 espeak-ng？","在 Linux 环境下，可以通过在 Docker 容器终端中运行 `espeak-ng --version` 命令确认是否已安装 espeak-ng。如果未安装，可以在 Dockerfile 中添加安装命令。Linux 系统会自动配置环境变量，因此无需手动设置 dll 路径。","https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fissues\u002F28",{"id":146,"question_zh":147,"answer_zh":148,"source_url":144},5678,"如何在请求时切换不同的 speaker 而不修改 config.py？","可以在请求时通过指定 `id` 参数来切换 speaker，而不需要更改 `config.py` 文件。",{"id":150,"question_zh":151,"answer_zh":152,"source_url":153},5679,"使用 GPU 加速时，短句的语音合成需要多长时间？","短句（如十几个字）的语音合成本身由模型推理决定，无法直接修改间隔时间。若需调整，可以尝试将文本拆分后进行推理，并加入自定义间隔。","https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fissues\u002F59",{"id":155,"question_zh":156,"answer_zh":157,"source_url":158},5680,"如何正确加载 bert_vits2 模型？","确保将 `pth`、`config.json` 和 `pytorch_model.bin` 文件放在 `data\\models\\` 目录下。如果仍然报错，可以尝试替换 `vits-simple-api\\bert_vits2\\text\\japanese_v111.py` 文件为特定版本的文件以解决兼容性问题。","https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fissues\u002F227",{"id":160,"question_zh":161,"answer_zh":162,"source_url":163},5681,"微信机器人调用语音合成 API 报错 400，如何解决？","尝试安装 `openjtalk==0.3.0.dev2`，或者下载对应系统和 Python 版本的 `.whl` 文件并通过 pip 安装。","https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fissues\u002F36",{"id":165,"question_zh":166,"answer_zh":167,"source_url":168},5682,"如何处理 GPT-Sovits 模型无法获取音频数据的问题？","如果使用的是部署包，请参考之前 Issues 中的升级命令进行更新。另外，确保你下载的版本已正确应用。","https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fissues\u002F222",{"id":170,"question_zh":171,"answer_zh":172,"source_url":173},5683,"如何支持方言识别？","当前项目不支持自动识别方言，因为中文汉字无法区分方言。用户需要手动指定语言参数，例如使用 `lang=gd` 表示粤语，或使用 `lang=mix` 处理包含 `[GD]` 标记的混合文本。","https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fissues\u002F40",{"id":175,"question_zh":176,"answer_zh":177,"source_url":173},5684,"SSML 请求时报错 KeyError: 'content-disposition'，如何解决？","此错误通常发生在请求头缺少 `Content-Disposition` 字段时。请检查代码中对响应头的访问逻辑，确保字段存在后再提取内容。",[179,184,189,194,199,204,209,214,219,224,229,234,239,244,249,254,259,264,269,274],{"id":180,"version":181,"summary_zh":182,"released_at":183},105298,"v0.6.16","## What's Changed\r\n* Fix GPT-SoVITS v2 version and model loading problem by @Artrajz in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F191\r\n\r\n\r\nv0.6.15以后版本更新注意点：\r\n* 从旧版配置文件迁移过来的用户需要注意，config.yaml中手动加载模型的配置参数有变动，`model_path`和`sovits_path`改为`vits_path`,`gpt_path`改为`t2s_path`。自动加载模型无影响。[参考示例](https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fblob\u002F0a741385bee52292f07209ecdfe6a16ed993ac03\u002FREADME.md?plain=1#L162 )\r\n\r\n如有bug欢迎提交issue\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fcompare\u002Fv0.6.15...v0.6.16\r\n\r\n\r\n## Decompression\r\n如遇解压出错问题，请尝试下载最新版的7-zip解压。\r\nIf encountering issues with decompression, please try downloading the latest version of 7-Zip for extraction.\r\n解凍で問題が発生した場合は、最新バージョンの7-Zipをダウンロードして解凍してみてください。\r\nhttps:\u002F\u002F7-zip.org\u002F\r\n\r\n## 国内网络下载问题\r\n搜索关键词：`github release 加速`\r\n用国内版必应可以搜索出来，然后找到任意可用的加速代理网站进行下载","2025-02-03T05:41:41",{"id":185,"version":186,"summary_zh":187,"released_at":188},105299,"v0.6.15","## What's Changed\r\n* Refactor config by @Artrajz in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F185\r\n* Update: GPT-SoVITS v2 by @Artrajz in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F186\r\n* VITS: lang_list is not defined & optional dynamic_loading by @const-volatile in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F187\r\n\r\n本次更新注意点：\r\n* 从旧版配置文件迁移过来的用户需要注意，config.yaml中手动加载模型的配置参数有变动，`model_path`和`sovits_path`改为`vits_path`,`gpt_path`改为`t2s_path`。自动加载模型无影响。[参考示例](https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fblob\u002F0a741385bee52292f07209ecdfe6a16ed993ac03\u002FREADME.md?plain=1#L162 )\r\n\r\n如有bug欢迎提交issue\r\n\r\n## New Contributors\r\n* @const-volatile made their first contribution in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F187\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fcompare\u002Fv0.6.14...v0.6.15\r\n\r\n## Decompression\r\n如遇解压出错问题，请尝试下载最新版的7-zip解压。\r\nIf encountering issues with decompression, please try downloading the latest version of 7-Zip for extraction.\r\n解凍で問題が発生した場合は、最新バージョンの7-Zipをダウンロードして解凍してみてください。\r\nhttps:\u002F\u002F7-zip.org\u002F\r\n\r\n## 国内网络下载问题\r\n搜索关键词：`github release 加速`\r\n用国内版必应可以搜索出来，然后找到任意可用的加速代理网站进行下载","2025-01-25T12:11:59",{"id":190,"version":191,"summary_zh":192,"released_at":193},105300,"v0.6.14","## What's Changed\r\n* Fix the parsing error of the lang parameter in stream_bert_vits2_infer\r\n* Remove the saving of abs_path in config.yaml\r\n* Fix the torch_data_type reading error in Bert-VITS2\r\n* Fix the download progress bar and add support for resuming downloads\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fcompare\u002Fv0.6.13...v0.6.14\r\n\r\n## Decompression\r\n如遇解压出错问题，请尝试下载最新版的7-zip解压。\r\nIf encountering issues with decompression, please try downloading the latest version of 7-Zip for extraction.\r\n解凍で問題が発生した場合は、最新バージョンの7-Zipをダウンロードして解凍してみてください。\r\nhttps:\u002F\u002F7-zip.org\u002F\r\n\r\n## 国内网络下载问题\r\n搜索关键词：`github release 加速`\r\n用国内版必应可以搜索出来，然后找到任意可用的加速代理网站进行下载","2024-11-30T10:29:32",{"id":195,"version":196,"summary_zh":197,"released_at":198},105301,"v0.6.13","## What's Changed\r\n* Fix streaming audio duplication by @Risenafis in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F163\r\n* Add CORS setting by @Risenafis in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F164\r\n* Update readme（Use double quotes） by @initialencounter in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F168\r\n* Update `requirements.txt` with prebuild-dependencies by @YaoSiQian in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F177\r\n* 修复GPT-SoVITS API中语言lang参数传入问题\r\n* 支持在webui中搜索speaker以及参考音频预设\r\n* 支持在VITS，Bert-VITS2和GPT-SoVITS的lang参数中传入多个语种标签，以限制文本语种识别的范围。例如一个支持中日英三语模型，可以传入lang=\"zh en\"，多个语种使用空格分开，表示待合成文本只会使用中文和英语语音合成。传入模型不支持的语种标签则会被过滤\r\n* 支持修改文本分割的正则表达式（内置的语种识别逻辑是先将文本分割成多个小段，再分别进行识别得到对应语种），方法为在config.yaml中修改language_identification.split_pattern\r\n* 修复docker部署方式缺失bert等模型配置文件的问题\r\n\r\n## New Contributors\r\n* @Risenafis made their first contribution in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F163\r\n* @initialencounter made their first contribution in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F168\r\n* @YaoSiQian made their first contribution in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F177\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fcompare\u002Fv0.6.12...v0.6.13\r\n\r\n## Decompression\r\n如遇解压出错问题，请尝试下载最新版的7-zip解压。\r\nIf encountering issues with decompression, please try downloading the latest version of 7-Zip for extraction.\r\n解凍で問題が発生した場合は、最新バージョンの7-Zipをダウンロードして解凍してみてください。\r\nhttps:\u002F\u002F7-zip.org\u002F","2024-11-11T15:42:59",{"id":200,"version":201,"summary_zh":202,"released_at":203},105302,"v0.6.12","## What's Changed\r\n* 修复SSML中加载多个模型时，说话人id切换错误的问题\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fcompare\u002Fv0.6.11...v0.6.12\r\n\r\n## Decompression\r\n如遇解压出错问题，请尝试下载最新版的7-zip解压。\r\nIf encountering issues with decompression, please try downloading the latest version of 7-Zip for extraction.\r\n解凍で問題が発生した場合は、最新バージョンの7-Zipをダウンロードして解凍してみてください。\r\nhttps:\u002F\u002F7-zip.org\u002F","2024-04-09T15:38:54",{"id":205,"version":206,"summary_zh":207,"released_at":208},105303,"v0.6.11","## What's Changed\r\n* 更新Bert-VITS2 日文特化版(Jpanese Extra)\r\n* 此版本后Release下的windows部署包将会预先把nltk数据包打包进来\r\n* 同步更新GPT-SoVITS并行推理，对于长文本推理有成倍速度提升\r\n* phrases_dict.txt移动到data目录下，方便docker挂载\r\n* 内置ngrok内网穿透，使用需要注册ngrok并填写autotoken\r\n* 程序初始化时预先加载langid模型，提升首次推理的速度\r\n* 同步更新GPT-SoVITS选择seed的功能\r\n* 新增[Colab Notebook](https:\u002F\u002Fcolab.research.google.com\u002Fdrive\u002F1uBkMy0UjLE3C1zvxZ7NPPc3K74v4B6zw)和[Autodl镜像](https:\u002F\u002Fwww.codewithgpu.com\u002Fi\u002FArtrajz\u002Fvits-simple-api\u002Fvits-simple-api-v0.6.10)\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fcompare\u002Fv0.6.10...v0.6.11\r\n\r\n## Decompression\r\n如遇解压出错问题，请尝试下载最新版的7-zip解压。\r\nIf encountering issues with decompression, please try downloading the latest version of 7-Zip for extraction.\r\n解凍で問題が発生した場合は、最新バージョンの7-Zipをダウンロードして解凍してみてください。\r\nhttps:\u002F\u002F7-zip.org\u002F","2024-03-25T12:08:21",{"id":210,"version":211,"summary_zh":212,"released_at":213},105304,"v0.6.10","## What's Changed\r\n* 同步更新GPT-SoVITS英文字符修复，无文本模式\r\n* 修复“泡一泡”等词组的推理问题\r\n* 修复GPT-SoVITS模型加载问题\r\n* 解决emotional的bug by @zwssunny in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F148\r\n* 增加一键执行脚本 by @zwssunny in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F149\r\n* 同步更新GPT-SoVITS推理加速，有20%~50%提升\r\n* 新增阅读API，支持旁白对话设置不同的说话人，接口为`voice\u002Freading`，参数见文档\r\n* 修复若干的小毛病\r\n\r\n## New Contributors\r\n* @zwssunny made their first contribution in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F148\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fcompare\u002Fv0.6.9...v0.6.10\r\n\r\n## Decompression\r\n如遇解压出错问题，请尝试下载最新版的7-zip解压。\r\nIf encountering issues with decompression, please try downloading the latest version of 7-Zip for extraction.\r\n解凍で問題が発生した場合は、最新バージョンの7-Zipをダウンロードして解凍してみてください。\r\nhttps:\u002F\u002F7-zip.org\u002F","2024-03-10T14:35:31",{"id":215,"version":216,"summary_zh":217,"released_at":218},105305,"v0.6.9","## What's Changed\r\n- 同步更新GPT-SoVITS DPO，增加top_k,top_p,temperature参数\r\n- 更新GPT-SoVITS中日英混合文本推理\r\n- 自动在**大写**的英文缩写字母之间加入空格，朗读时将会一个字母一个字母念\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fcompare\u002Fv0.6.8...v0.6.9\r\n\r\n## Decompression\r\n如遇解压出错问题，请尝试下载最新版的7-zip解压。\r\nIf encountering issues with decompression, please try downloading the latest version of 7-Zip for extraction.\r\n解凍で問題が発生した場合は、最新バージョンの7-Zipをダウンロードして解凍してみてください。","2024-02-14T12:43:50",{"id":220,"version":221,"summary_zh":222,"released_at":223},105306,"v0.6.8","## What's Changed\r\n* 更新对GPT-SoVITS的支持\r\n* 增加参考音频预设字典 (GPT-SoVITS)\r\n* 修复设置页面中复选框失效问题\r\n* 过滤掉一些影响不大的警告\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fcompare\u002Fv0.6.7...v0.6.8\r\n\r\n## Decompression\r\n如遇解压出错问题，请尝试下载最新版的7-zip解压。\r\nIf encountering issues with decompression, please try downloading the latest version of 7-Zip for extraction.\r\n解凍で問題が発生した場合は、最新バージョンの7-Zipをダウンロードして解凍してみてください。\r\n\r\n**祝大家除夕快乐！**","2024-02-09T11:03:28",{"id":225,"version":226,"summary_zh":227,"released_at":228},105307,"v0.6.7","## What's Changed\r\n* update bert_vits2 v2.4 by @Artrajz in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F142\r\n* 修复style_text导致的问题\r\n* 移除int8由于其不可用\r\n* 优化自动加载模型\r\n\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fcompare\u002Fv0.6.6...v0.6.7\r\n\r\n## Decompression\r\n如遇解压出错问题，请尝试下载最新版的7-zip解压。\r\nIf encountering issues with decompression, please try downloading the latest version of 7-Zip for extraction.\r\n解凍で問題が発生した場合は、最新バージョンの7-Zipをダウンロードして解凍してみてください。\r\n\r\n","2024-02-01T06:46:58",{"id":230,"version":231,"summary_zh":232,"released_at":233},105308,"v0.6.6","## What's Changed\r\n* 更新配置文件系统 by @Artrajz in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F129\r\n* bert模型、情感模型、tts模型统一放到data目录下存放\r\n* **重要：此次更新之后，放入data\u002Fmodels目录下的tts模型，默认将会全部自动加载。在配置文件中保留了开关，可恢复为手动填写路径指定加载模型。**\r\n* 同步支持bert-vits2的fp16功能\r\n* 为下载release文件添加新的国内代理\r\n* tts模型直接加载到device中\r\n* webui中添加api_key设置\r\n* 修复一些模型加载问题\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fcompare\u002Fv0.6.5...v0.6.6\r\n\r\n## Decompression\r\n如遇解压出错问题，请尝试下载最新版的7-zip解压。\r\nIf encountering issues with decompression, please try downloading the latest version of 7-Zip for extraction.\r\n解凍で問題が発生した場合は、最新バージョンの7-Zipをダウンロードして解凍してみてください。","2024-01-21T06:07:10",{"id":235,"version":236,"summary_zh":237,"released_at":238},105309,"v0.6.5","## What's Changed\r\n* 更新对Bert-VITS2中文特化版的兼容，使用前将模型的`config.json`版本号改为`extra`或者`zh-clap`。\r\n* Bert-VITS2 v2.2和中文特化版中若不填写text_prompy，默认改为Happy，与Bert-VITS2的webui保持一致。\r\n* 内置的多音字词典添加`重生`，`重重地`，`自少时`的拼音。\r\n\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fcompare\u002Fv0.6.4...v0.6.5\r\n\r\n## Decompression\r\n如遇解压出错问题，请尝试下载最新版的7-zip解压。\r\nIf encountering issues with decompression, please try downloading the latest version of 7-Zip for extraction.\r\n解凍で問題が発生した場合は、最新バージョンの7-Zipをダウンロードして解凍してみてください。","2024-01-09T05:28:04",{"id":240,"version":241,"summary_zh":242,"released_at":243},105310,"v0.6.4","## What's Changed\r\n* 修复Bert-VITS2多语种连读停顿的问题\r\n* 修复ssml解析中读取配置的问题\r\n* ssml调用参数中若不填写模型类型，则自动从已加载的模型类型中选取\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fcompare\u002Fv0.6.3.1...v0.6.4","2024-01-05T16:14:32",{"id":245,"version":246,"summary_zh":247,"released_at":248},105311,"v0.6.3.1","## What's Changed\r\n* Fix english_bert_mock.py and compatibility issues\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fcompare\u002Fv0.6.3...v0.6.3.1","2024-01-04T04:58:08",{"id":250,"version":251,"summary_zh":252,"released_at":253},105312,"v0.6.3","## What's Changed\r\n* Update Bert-VITS2 v2.3 by @Artrajz in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F121\r\n\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fcompare\u002Fv0.6.2.1...v0.6.3","2024-01-02T16:16:56",{"id":255,"version":256,"summary_zh":257,"released_at":258},105313,"v0.6.2.1","## What's Changed\r\n* 修复一个影响比较严重的bug，该bug导致text_prompt的参数没有被传入\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fcompare\u002Fv0.6.2...v0.6.2.1\r\n","2024-01-02T14:07:08",{"id":260,"version":261,"summary_zh":262,"released_at":263},105314,"v0.6.2","## What's Changed\r\n* Update Bert-VITS2 v2.2 and others by @Artrajz in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F120\r\n* Update: Prioritize splitting by paragraphs.\r\n\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fcompare\u002Fv0.6.1...v0.6.2","2023-12-31T04:01:21",{"id":265,"version":266,"summary_zh":267,"released_at":268},105315,"v0.6.1","## What's Changed\r\n* Optimize the recognition of mixed Chinese and English characters in numbers. by @Artrajz in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F108\r\n* Add japanese lang to vits-installer shell by @tosaka07 in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F115\r\n* Fix model loading issues by @Artrajz in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F119\r\n\r\n## New Contributors\r\n* @tosaka07 made their first contribution in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F115\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fcompare\u002Fv0.6.0...v0.6.1","2023-12-25T09:31:41",{"id":270,"version":271,"summary_zh":272,"released_at":273},105316,"v0.6.0","## What's Changed\r\n* Dev by @Artrajz in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F91\r\n* Fix ssml instruction and default parameter description. by @Artrajz in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F93\r\n* Fix some bugs about bert-vits2 v2.1 model forward. by @kiraYuukiAsuna in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F105\r\n\r\n## New Contributors\r\n* @kiraYuukiAsuna made their first contribution in https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fpull\u002F105\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fcompare\u002F0.5.3...v0.6.0","2023-11-30T13:23:39",{"id":275,"version":276,"summary_zh":277,"released_at":278},105317,"v0.6.0-alpha.11","## What's Changed\r\n* 修复模型路径和segment_size的保存。\r\n* 网页后台的语种识别库更改为下拉框选择。\r\n* 修复调用Bert-VITS2时lang一直为auto的问题。\r\n* gunicorn的默认配置中添加超时时间120s。\r\n* 为Bert-VITS2分别添加中日英调节语速的参数。\r\n* 为VITS添加动态加载模型的选项，开启后的效果为当调用时才加载模型权重，调用完毕后释放模型权重，当内存不足以加载所有模型时可以开启此功能。\r\n\r\n**Full Changelog**: https:\u002F\u002Fgithub.com\u002FArtrajz\u002Fvits-simple-api\u002Fcompare\u002Fv0.6.0-alpha.10...v0.6.0-alpha.11\r\n\r\n如遇解压出错问题，请尝试下载最新版的7-zip解压。\r\n\r\n","2023-11-22T13:51:26"]