近年、生成系AIは目まぐるしい進化を遂げています。ChatGPT, Stable Diffusion, DALE・E2, Google Bardなど枚挙に暇がありません。また、生成系AIに限らず様々な分野でAIが活用されています。
その分野の一つが「音声変換・ボイスチェンジャー」です。AIを活用したボイスチェンジャーにはたくさんの種類があり、一つ一つが異なるアプローチで処理を行っています。いくつか紹介しましょう。
- so-vits-svc, DDSP-SVC
SoftVCとVITSを組み合わせて変換元話者によらない音質変換を実現。 - RVC
faissによるベクトル類似検索を利用。 - MMVC
- Seiren Voice(予想)
- Diff-SVC
話題の拡散確率モデルを用いたボイスチェンジャー。
これらのAIボイスチェンジャーは高品質、高性能でとても魅力的です。しかし、利用するにあたって不便な点があります。
それが、Pythonで環境構築をしなければならないということです。
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
環境構築がとても面倒なのです。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-5-1024x68.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-5-1024x68.png)
上の画像はStable Diffusion Web UIの例です。AIはオープンソースのライブラリを使用して作成されていることが多い、というかほぼすべてのソフトがライブラリを使用しているのです。ライブラリを利用するためには使用する環境でライブラリが導入されていなければならない上、ライブラリの互換性にも配慮する必要があります。バージョンが違って実行すらできないことなんてざらにあります。まるでヨーグルトのようなメンタルを持つ私では精神的に辛いです。
ところが、今までの常識を覆すようなソフトウェアが現れました。
今回はRVCを活用したボイスチェンジャー、Koemake RVC Playerで簡単にAIボイスチェンジャーを体験する方法を紹介します。※ここからはKoemake RVC PlayerをKoemake と省略します。
Koemakeの何がすごいのか
Koemakeのすごいところ、それはPythonで環境構築をする必要がない点です。ソフトウェアに必要なライブラリが内包されているためダウンロードしたらすぐに使い始めることが可能です。それでは、導入手順を紹介しましょう。
導入手順
Koemake Projectにアカウント登録&ダウンロード
まず、Koemake Projectのサイトにアクセスしてアカウントを登録します。
サイト右上のログインボタンを押しましょう。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image.png)
ログイン画面が出てきたら新規登録タブに移動してメールアドレス、パスワードを設定してアカウントを作成します。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-1.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-1.png)
アカウント登録が完了すると自動でログインされます。
ログインした状態でページの真ん中あたりにあるダウンロードボタンをクリックします。
![](https://smartphone-note.com/wp-content/uploads/2023/05/SS2-1024x831.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/SS2-1024x831.png)
利用規約に目を通した後、利用規約に同意してダウンロードボタンを押します。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-2.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-2.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
利用規約の内容をまとめると
1.再配布しちゃダメだよ
2.つくよみちゃんプロジェクトの規約に従ってね
3.不具合が出ても責任は取りません
となっています。単純明快で分かりやすいですね。
Google Driveのリンクが開きますので、ダウンロードでzipファイルをダウンロードします。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-107-edited.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-107-edited.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-108.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-108.png)
ダウンロードしたzipファイルを解凍します。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-109.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-109.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-110.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-110.png)
これでソフトウェアの準備は完了です。
Koemakeを開く
koemake.exeを実行します。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-111.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-111.png)
起動できましたね。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-112.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-112.png)
使い方
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
ここで、スペシャルゲストをお呼びしました! つくよみちゃんの登場です!
![](https://smartphone-note.com/wp-content/uploads/2023/05/LinkedIn-cover-2-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/LinkedIn-cover-2-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/LinkedIn-cover-2-150x150.png)
どうも、つくよみちゃんです。
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
特技が営業スマイルって本当ですか!?
![](https://smartphone-note.com/wp-content/uploads/2023/05/LinkedIn-cover-2-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/LinkedIn-cover-2-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/LinkedIn-cover-2-150x150.png)
そうですよ!
みんなを笑顔にしたい、その一心で頑張っています。
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
そうなんですね。
ここからはつくよみちゃんと一緒にKoemakeの具体的な使い方、応用方法を紹介します。
UIの図解
![](https://smartphone-note.com/wp-content/uploads/2023/05/SS3.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/SS3.png)
① ターゲット音声(モデル) ※現状はつくよみちゃんのみ
② メニュー切り替え
③ マイクの音声をパススルー
④ 出力をミュート
⑤ ノイズ除去 音声にノイズが乗るときは値を上げる
⑥ どれだけ入力音声をターゲット音声(モデル)にフィットさせるかのパラメーター 声に合わせて調整
⑦ 変換後の声の高さを調整するパラメーター 男性→女性なら+12 女性から男性なら-12 同性なら0が基準
⑧ 変換後の音量を調整するパラメーター
⑨ 入力、出力デバイス
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-117.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-117.png)
使用しているモデルの詳細が表示されます。この内容はモデルフォルダのinfo.ymlで確認、編集することもできます。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-118-1024x731.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-118-1024x731.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-119.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-119.png)
モデルのディレクトリを追加で指定できます。「外付けSSDに保存しているモデルを使いたい!」というときにモデルが存在するフォルダを指定すれば読み込みます。なお、ディレクトリを指定したからと言って本体付属のモデルが使用できなくなることはありません。
実際にボイスチェンジをする
ボイスチェンジの手順を紹介します。
モデルを読み込む
モデルはドロップダウンメニューから選択することができます。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-115.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-115.png)
選択できたらモデルを読み込むにはLOADボタンを押します。モデルの読み込みが始まるので、待ちましょう。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-113.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-113.png)
音声変換が始まると左下の表示がVoice changingに切り替わります。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-114.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-114.png)
この設定の場合、標準の音声入力デバイスの音声を変換して標準の音声出力デバイスに出力します。
他のマイクを使いたい場合はInput I/Fを変えて、他のスピーカー等に音声を流したい場合はOutput I/Fを変えます。
モデルを追加する
RVCモデルを追加することができます。モデルの学習方法は後日紹介予定ですが、軽く導入方法だけ紹介します。
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
今回は事前学習データにこれを利用した
つくよみちゃんのデータを追加してみましょう。
modelフォルダに新規フォルダを作成します。名前は適当なものをつけましょう。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-125.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-125.png)
次に、音声モデルファイル(.pth)、インデックスファイル(.index)、特徴ファイル(.npy)を入れます。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-126.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-126.png)
次に、info.ymlを作成します。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-128.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-128.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-130.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-130.png)
モデルができたらKoemakeを起動します。モデル一覧を見てみると、追加されていることがわかります。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-131.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-131.png)
これで実行できる…と思ったのですが読み込めませんでした。DMで問い合わせたところ、768次元で学習したモデルに対応していないそうです。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-132.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-132.png)
VoiceMeeterでシステム音声をリアルタイムに変換
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
既存の音源やシステム音声を変換したいときはどうすればいいのでしょうか。
![](https://smartphone-note.com/wp-content/uploads/2023/05/LinkedIn-cover-2-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/LinkedIn-cover-2-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/LinkedIn-cover-2-150x150.png)
そういうときは、VoiceMeeterを使いましょう。
VoiceMeeter Bananaで仮想音声デバイスを作成するとKoemakerでシステム音声等をリアルタイムで変換できるようになります。※ VoiceMeeterでは音声デバイスが足りません。
![](https://smartphone-note.com/wp-content/uploads/2023/05/SS5-1024x683.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/SS5-1024x683.png)
HARDWARE OUTのA1にオリジナルのシステム音声を流したい音声出力デバイス、
A2に変換後の音声を流したい音声出力デバイスを設定します。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-19.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-19.png)
出力先の音量を下げるためにFade Gainを下げます。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-20.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-20.png)
VIRTUAL INPUTSの出力先は以下の画像のように設定します。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-40.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-40.png)
次に、Windows側の音声出力デバイスをVoiceMeeter Aux Inputにします。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-16.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-16.png)
Koemake RVC Playerの設定は以下の画像のように設定します。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-121.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-121.png)
この状態で音声を再生するとKoemake RVC Playerで処理された音が聞こえてきます。
NVIDIA Broadcastをインストールしている場合、Noise removalエフェクトに通すことで良い結果を得られます。
![](https://smartphone-note.com/wp-content/uploads/2023/05/SS4-1-1024x683.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/SS4-1-1024x683.png)
変換後の音声を録音する方法
![](https://smartphone-note.com/wp-content/uploads/2023/05/LinkedIn-cover-2-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/LinkedIn-cover-2-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/LinkedIn-cover-2-150x150.png)
変換後の音声はVoiceMeeterで簡単に録音できるよ!
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
WASPIのloopbackで録音してもいいね。
Audacityで録音
Audacityで音声出力デバイスの音声を録音することができます。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-123.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-123.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
上の例では音声出力先がLG FULL HDになっていますね。
Audio Settingsを開きます。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-27.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-27.png)
HostをWindows WASPI、Recording DeviceをOutput I/Fに設定したデバイスにします。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-28.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-28.png)
これで録音ボタンを押せば変換後の音声が録音されます。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-124-1024x635.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-124-1024x635.png)
VoiceMeeter Bananaを使う
VoiceMeeterでシステム音声をリアルタイムに変換の項目でVoiceMeeter Bananaの設定ができている場合、VoiceMeeter Aux Outputから録音できます。録音ソフトは何でも構いません。
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-31.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-31.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-30.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/image-30.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/LinkedIn-cover-2-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/LinkedIn-cover-2-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/LinkedIn-cover-2-150x150.png)
シンプルで分かりやすいですね。
さいごに
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
実際に使ってみたけれど、とても自然な声で驚きました。
![](https://smartphone-note.com/wp-content/uploads/2023/05/LinkedIn-cover-2-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/LinkedIn-cover-2-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/LinkedIn-cover-2-150x150.png)
たまに音を認識できずおかしくなることありますが、
それもご愛嬌ということで。
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
![](https://smartphone-note.com/wp-content/uploads/2023/05/00013-496763647-1-150x150.png)
今後の進化が楽しみですね。
今後、歌声の変換方法やきれいに変換するコツなどを追記する予定です。
最後まで見ていただきありがとうございました。
コメント