{"id":26385026,"url":"https://github.com/lqm1/voicebank2diffsinger","last_synced_at":"2025-03-17T07:38:06.216Z","repository":{"id":244801361,"uuid":"815805261","full_name":"Lqm1/Voicebank2DiffSinger","owner":"Lqm1","description":"Convert the UTAU Voicebank to a configuration compatible with DiffSinger Dataset","archived":false,"fork":false,"pushed_at":"2025-03-02T08:21:36.000Z","size":198,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-09T17:52:49.428Z","etag":null,"topics":["diffsinger","svs","utau"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lqm1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-16T08:00:03.000Z","updated_at":"2025-03-02T08:21:40.000Z","dependencies_parsed_at":"2025-02-06T02:33:14.782Z","dependency_job_id":"2b0d9865-2a72-494a-b10e-1e123a871ba9","html_url":"https://github.com/Lqm1/Voicebank2DiffSinger","commit_stats":null,"previous_names":["c7e715d1b04b17683718fb1e8944cc28/voicebank2diffsinger","lqm1/voicebank2diffsinger"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lqm1%2FVoicebank2DiffSinger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lqm1%2FVoicebank2DiffSinger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lqm1%2FVoicebank2DiffSinger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lqm1%2FVoicebank2DiffSinger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lqm1","download_url":"https://codeload.github.com/Lqm1/Voicebank2DiffSinger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243994097,"owners_count":20380511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["diffsinger","svs","utau"],"created_at":"2025-03-17T07:38:05.650Z","updated_at":"2025-03-17T07:38:06.206Z","avatar_url":"https://github.com/Lqm1.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Voicebank2DiffSinger\n\n[![Python Version](https://img.shields.io/badge/python-3.11-blue.svg)](https://www.python.org/downloads/release/python-3111/)\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n\n**Voicebank2DiffSinger** は、UTAU音源から **SOFA** と **MakeDiffSinger** を用いて、DiffSinger 用の学習データセットを自動生成するツールです。\n\n[English README](README_EN.md)\n\n## 目次\n\n- [概要](#概要)\n- [機能](#機能)\n- [ディレクトリ構造](#ディレクトリ構造)\n- [前提条件](#前提条件)\n- [インストール方法](#インストール方法)\n  - [uv を利用する方法 (高速インストール)](#uv-を利用する方法-高速インストール)\n  - [pip を利用する方法](#pip-を利用する方法)\n- [使用方法](#使用方法)\n- [注意事項](#注意事項)\n- [貢献](#貢献)\n- [ライセンス](#ライセンス)\n- [連絡先](#連絡先)\n\n## 概要\n\n本ツールは、UTAU音源データを解析し、DiffSinger 用の学習データセットに変換します。内部では、**SOFA モデル** と **MakeDiffSinger** の仕組みを活用し、音声データの前処理・変換を自動で行います。\n\n## 機能\n\n- **音源解析:** UTAU音源から音素や単語のシーケンスを抽出します。\n- **SOFA モデル活用:** 高精度な音声処理を実現するために、日本語用SOFAモデルを利用します。\n- **DiffSinger用データ生成:** MakeDiffSingerとの連携で、DiffSinger用の学習データセットを生成します。\n\n## ディレクトリ構造\n\n```\nDirectory structure:\n└── Voicebank2DiffSinger/\n    ├── README.md\n    ├── README_EN.md\n    ├── LICENSE\n    ├── pyproject.toml\n    ├── requirements.txt\n    ├── uv.lock\n    ├── .python-version\n    └── src/\n        ├── g2p.py\n        ├── main.py\n        ├── utils.py\n        ├── MakeDiffSinger/\n        ├── SOFA/\n        ├── ckpt/\n        │   └── .gitkeep\n        ├── dictionaries/\n        │   └── .gitkeep\n        └── outputs/\n            └── .gitkeep\n```\n\n## 前提条件\n\n- **OS:** Windows\n- **開発環境:** C++（Visual Studioを用いたデスクトップ開発）、CMake\n- **Python:** 3.11（3.12未満、3.11.11でテスト済み）\n\n## インストール方法\n\n### uv を利用する方法 (高速インストール)\n\n1. **uv のセットアップ（オプション）**\n\n   以下のコマンドを PowerShell で実行してください：\n\n   ```powershell\n   powershell -ExecutionPolicy ByPass -c \"irm https://astral.sh/uv/install.ps1 | iex\"\n   ```\n\n2. **リポジトリのクローン**\n\n   サブモジュールも含めてリポジトリをクローンし、ディレクトリに移動します：\n\n   ```powershell\n   git clone --recursive https://github.com/Lqm1/Voicebank2DiffSinger.git\n   cd Voicebank2DiffSinger\n   ```\n\n3. **必要モジュールのインストール**\n\n   ```powershell\n   uv sync\n   ```\n\n4. **日本語 SOFA モデルの導入**\n\n   [日本語のSOFAモデル](https://github.com/Greenleaf2001/SOFA_Models/releases/tag/JPN_Test2) から以下のファイルをダウンロードしてください：\n   \n   - `step.100000.ckpt` を `src/ckpt` フォルダへ配置\n   - `japanese-extension-sofa.txt` を `src/dictionaries` フォルダへ配置\n\n### pip を利用する方法\n\n1. **リポジトリのクローン**\n\n   サブモジュールも含めてリポジトリをクローンし、ディレクトリに移動します：\n\n   ```powershell\n   git clone --recursive https://github.com/Lqm1/Voicebank2DiffSinger.git\n   cd Voicebank2DiffSinger\n   ```\n\n2. **仮想環境の構築とアクティベート**\n\n   ```powershell\n   python -m venv .venv\n   .venv/scripts/activate\n   ```\n\n3. **必要モジュールのインストール**\n\n   ```powershell\n   pip install -r requirements.txt\n   ```\n\n4. **日本語 SOFA モデルの導入**\n\n   [日本語のSOFAモデル](https://github.com/Greenleaf2001/SOFA_Models/releases/tag/JPN_Test2) から以下のファイルをダウンロードしてください：\n   \n   - `step.100000.ckpt` を `src/ckpt` フォルダへ配置\n   - `japanese-extension-sofa.txt` を `src/dictionaries` フォルダへ配置\n\n## 使用方法\n\n1. **仮想環境のアクティベート（pip インストールの場合）**\n\n   ```powershell\n   .venv/scripts/activate\n   ```\n\n2. **実行方法**\n\n   `src/main.py` に対して、音源（音階）フォルダを1つまたは複数引数として指定して実行します。例：\n\n   ```powershell\n   python src/main.py example/A3 example/A2 example/A4\n   ```\n\n   ※ 各フォルダ内に対象の音源ファイルと、同名の `.txt` ファイル（ラベル情報）が必要です。\n\n## 注意事項\n\n- **ファイル配置:**  \n  `src/ckpt` および `src/dictionaries` に日本語SOFAモデルのファイルが正しく配置されていない場合、実行時にエラーが発生します。\n\n- **依存関係:**  \n  本プロジェクトは多くの外部パッケージに依存しています。インストール時にエラーが発生した場合は、Pythonのバージョンや各パッケージのバージョンに注意してください。\n\n- **詳細設定:**  \n  各モジュールの詳細な設定やカスタマイズ方法については、ソースコード内のコメントおよび各ディレクトリ内のドキュメントをご参照ください。\n\n## 貢献\n\nバグ報告、機能追加の提案、プルリクエストなど、どなたからの貢献も大歓迎です。まずは [Issue](https://github.com/[ユーザー名]/Voicebank2DiffSinger/issues) をご利用ください。\n\n## ライセンス\n\nこのプロジェクトは [GPL-3.0 License](https://www.gnu.org/licenses/gpl-3.0) のもとで公開されています。\n\n## 連絡先\n\nご質問やご提案は、[info@lami.zip](mailto:info@lami.zip) までご連絡ください。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flqm1%2Fvoicebank2diffsinger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flqm1%2Fvoicebank2diffsinger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flqm1%2Fvoicebank2diffsinger/lists"}