Skip to content

Commit

Permalink
Merge pull request #106 from shigobu/AivisSpeech対応
Browse files Browse the repository at this point in the history
Aivis speech対応
  • Loading branch information
shigobu authored Nov 20, 2024
2 parents c4e932e + 7a61baf commit 125e2d4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ Windows Defender にウイルスとして検知されてしまうと報告をう
- COEIROINK (v.1.x.x系統)
- LMROID
- SHAREVOX
- ITVOICE
- COEIROINK v2(bridge使用)
- AivisSpeech

### スタイル登録ツールのポートの変更方法
スタイル登録ツールのポート変更ボタンを押します。ポート変更ボタンの場所は、以下の通りです。
Expand Down
5 changes: 4 additions & 1 deletion SAPIForVOICEVOX/VoiceVoxTTSEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,10 @@ public void SetObjectToken(ISpObjectToken pToken)
//初期化
//話者番号を取得し、プロパティに設定。
Token.GetDWORD(Common.regSpeakerNumber, out uint value);
SpeakerNumber = (int)value;
unchecked //オーバーフローのチェックを行わず、そのまま代入。
{
SpeakerNumber = (int)value;
}

Token.GetDWORD(Common.regPort, out value);
Port = (int)value;
Expand Down
1 change: 1 addition & 0 deletions StyleRegistrationTool/View/ChangePortWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public ChangePortWindow(string appName, int port)
portComboBox.Items.Add(new Model.NameAndPort("SHAREVOX", 50025));
portComboBox.Items.Add(new Model.NameAndPort("ITVOICE", 49540));
portComboBox.Items.Add(new Model.NameAndPort("COEIROINK v2 bridge", 50132));
portComboBox.Items.Add(new Model.NameAndPort("AivisSpeech", 10101));


SelectedPreset = new Model.NameAndPort(appName, port);
Expand Down

0 comments on commit 125e2d4

Please sign in to comment.