<iframe src=" voicevox.pyhttp://ghbtns.com/github-btn.html?user=sonyakun&repo=voicevox.py&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe> <iframe src="http://ghbtns.com/github-btn.html?user=sonyakun&repo=voicevox.py&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20"></iframe>
Python上から簡単にVORCEVOXの音声合成を利用できるモジュール。
使い方
PC上のVOICEVOXを利用する
VOICEVOXダウンロード&インストーラー実行
import voicevox
from voicevox import vboxclient
vboxapp = vboxclient.voiceclient() #Class「voiceclient」を利用可能にする
vboxapp.vbox_dl()#インストーラーをダウンロード&実行
VOICEVOXを起動
import voicevox
from voicevox import vboxclient
vboxapp = vboxclient.voiceclient() #Class「voiceclient」を利用可能にする
vboxapp.app(exepass="VOICEVOXのexeの場所")
音声合成
import voicevox
from voicevox import vboxclient
vboxapp = vboxclient.voiceclient() #Class「voiceclient」を利用可能にする
vboxapp.run(text="", speaker="3", filename="hoge")#textとfilenameは好きに変更できます
Web上のVOICEVOXのAPIを利用する
音声合成
import voicevox
from voicevox import webapi
webapi.run(apikey="",text="",sound="3",filename="hoge")#textとfilenameは好きに変更できます
(APIKeyはここから取得できます)