UTAU's command client
Project description
PyUtauCli
これは何?
-
飴屋/菖蒲氏によって公開されている、Windows向けに作成された歌声合成ソフトウェア「UTAU」関連データを扱うプロジェクトです。
UTAU公式サイト(http://utau2008.web.fc2.com/)
-
扱えるデータ
- .ustファイル(UTAU sequence txt)
- ust version1.2に限る
- ヘッダ部分の文字コードはシステム既定もしくはcp932
- body部分の文字コードはcp932もしくはutf-8
- utauplugin用データ
- UTAU音源関連データ
- oto.ini
- prefix.map
- .frq(周波数表データ)
- windows版UTAUの設定ファイル
- .ustファイル(UTAU sequence txt)
-
改造や組み込みを歓迎しますが、それらのためのドキュメントは準備中です。
-
音声の合成には、下記の兄弟プロジェクトを活用しています。
PyWavTool(https://github.com/delta-kimigatame/PyWavTool) PyRwu(https://github.com/delta-kimigatame/PyRwu)
免責事項
- 本ソフトウェアを使用して生じたいかなる不具合についても、作者は責任を負いません。
- 作者は、本ソフトウェアの不具合を修正する責任を負いません。
モジュールの使い方
インストール
pip install PyUtauCli
使い方(ustファイルからwavを生成する)
from PyUtauCli.projects.Render import Render
from PyUtauCli.projects.Ust import Ust
#ustファイルの読み込み
ust = Ust("ustpath.ust")
ust.load()
#各種パラメータの変換
render = Render(ust, cache_dir="cache", output_file="output.wav")
#キャッシュの削除
render.clean()
#PyRwuを用いてキャッシュファイルの生成
render.resamp()
#キャッシュファイルを使用してoutput.wavの生成
render.append()
使い方(ustプラグイン -選択ノートを半音上げるプラグイン-)
import sys
from PyUtauCli.projects.UtauPlugin import UtauPlugin
print(sys.argv)
#['plugin.py', 'C:\User\username\AppData\Local\Temp\utau1\tmp****.tmp']
#プラグインファイルの読み込み
plugin = UtauPlugin(sys.argv[1])
plugin.load()
#半音上げる処理
for note in plugin.notes:
note.notenum.value += 1
#プラグインファイルの書き込み
plugin.save()
使い方(Google Colab)
colab(https://colab.research.google.com/drive/1V9aWorTtgjVQDjdnv4Yd1ps63Q_kDRpj?usp=sharing)
技術仕様
リンク
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file PyUtauCli-0.0.2.tar.gz.
File metadata
- Download URL: PyUtauCli-0.0.2.tar.gz
- Upload date:
- Size: 29.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bd80c9239b74e41662f93bab813326f65fe45978be110b392495aeb2bbc4c90
|
|
| MD5 |
ef84805b536222fa63b0576df53e78ae
|
|
| BLAKE2b-256 |
0bf3815015ec3fcd1a4d82c93d62ee813ce95d91e31d570e8584ab742eee7d0e
|
File details
Details for the file PyUtauCli-0.0.2-py3-none-any.whl.
File metadata
- Download URL: PyUtauCli-0.0.2-py3-none-any.whl
- Upload date:
- Size: 36.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b789f7993e88d68f2837b660a0881258bfaa8e6fa636fae4888b35ac9341445
|
|
| MD5 |
e3a94b295d3475824505f5344b9e1e72
|
|
| BLAKE2b-256 |
2c9b104cc3825dd76a9bd36c9cf136f0395acc9b745d475d5051724c56a2e5a3
|