-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3904a6
commit e144310
Showing
3 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,54 @@ | ||
# SimpleVoiceroid2Proxy | ||
VOICEROID 2 を REST API で操作できます | ||
|
||
VOICEROID2 を REST API で操作して読み上げさせるコンソールアプリケーションです。(要管理者権限) | ||
|
||
![main](https://github.com/SlashNephy/SimpleVoiceroid2Proxy/blob/master/Images/main.png?raw=true) | ||
|
||
## ACT.Hojoring との連携 | ||
|
||
[ACT.Hojoring](https://github.com/anoyetta/ACT.Hojoring) で棒読みちゃんの代わりに使用することで **低遅延** **UI 妨害のない** 読み上げが可能です。 | ||
FFXIV プレイ中に読み上げが行われてもウィンドウが前面に出現しないため, 操作がブロックされることはありません。 | ||
|
||
![act](https://github.com/SlashNephy/SimpleVoiceroid2Proxy/blob/master/Images/act.png?raw=true) | ||
|
||
## REST API | ||
|
||
現在実装されている REST API は以下の通りです。 | ||
LAN に `4532/tcp` を開放するので同一ネットワーク内から操作が可能です。 | ||
|
||
- `GET /talk` | ||
パラメータ `text` を渡すことで読み上げを行えます。ただし `GET` リクエストは URL の長さの制約を受けるので `POST` を推奨します。(ACT.Hojoring との互換性のため `GET` 対応しています) | ||
|
||
「てすと」を読み上げる例: | ||
``` | ||
http://localhost:4532/talk?text=%E3%81%A6%E3%81%99%E3%81%A8 | ||
``` | ||
- `POST /talk` | ||
ペイロードとして JSON を送信することで読み上げを行えます。 | ||
「てすと」を読み上げる例: | ||
```json | ||
{ | ||
"text": "てすと" | ||
} | ||
``` | ||
## コマンド | ||
特定の文字列を `text` に含めることで特殊な操作を行えます。 | ||
- `結月ゆかり>` | ||
話者名を指定することで特定の話者に読み上げさせることが可能です。(VOICEROID2 の機能) | ||
他の話者も指定可能です。 | ||
この指定は `text` の先頭で行う必要があります。 | ||
- `<clear>` | ||
読み上げのキューをクリアします。 | ||
- `<pause>`, `<resume>` | ||
現在の読み上げを 一時停止 / 再開 します。 | ||
- `<interrupt_enable>`, `<interrupt_disable>` | ||
読み上げの割り込みモードを 有効化 / 無効化 します。 | ||
デフォルトでは割り込み (読み上げ中に別のテキストを受け取ると中断し, 新しいテキストを読み上げます) が有効になっています。 |