Skip to content

Commit

Permalink
Merge pull request #3 from nmori/master
Browse files Browse the repository at this point in the history
接続先の指定オプション追加
  • Loading branch information
wallstudio authored Jul 16, 2022
2 parents 5b59a02 + 323dec0 commit b608b32
Show file tree
Hide file tree
Showing 27 changed files with 2,585 additions and 112 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RecotteStudioとVOICEVOXを連携させるアプリです。
1. [Releases](https://github.com/wallstudio/RecotteVoicevoxBridge/releases)からRecotteVoicevoxBridgeをダウンロードして適当なディレクトリに展開します。
1. RecotteStudioの外部アプリ連携を画像のように設定します。(実行コマンドのexeファイルの場所は各環境に合わせてください)
1. VOICEVOXを起動してください。
1. RecotteStudioの話者を先ほど設定した設定にしてください。(話者名は 0=四国めたん, 1=ずんだもん です
1. RecotteStudioの話者を図を参考して設定します。(話者名に指定すべき番号は後述
1. CeVIOAPI連携と同様に更新をかけるたびに自動でVOICEVOXから音声データを引っ張って来るようになります。

![image](img/config1.png)
Expand All @@ -21,7 +21,7 @@ https://twitter.com/ahsoft/status/1423217051456262149?s=20

## 仕組み

VoiceVox起動状態でVoiceVoxEngineが起動している筈なので、横からHTTPリクエストを飛ばす。
VOICEVOX起動状態でVoiceVoxEngineが起動している筈なので、横からHTTPリクエストを飛ばす。


```
Expand Down Expand Up @@ -56,6 +56,21 @@ RecotteStudioに設定する引数に、ファイルをフルパスで指示し
```


## VOICEVOXを継承するソフトウェアと連動する場合
- COEIROINKと連動する場合
- オプションに -p 50031 を指定します。
- LMROIDと連動する場合
- オプションに -p 50073 を指定します。


## 話者IDの調べ方
- VOICEVOX
- VOICEVOXを立ち上げたうえで、[ドキュメント](http://127.0.0.1:50021/docs#/%E3%81%9D%E3%81%AE%E4%BB%96/speakers_speakers_get)を参考に調べます。(Try it out → Executeの順に押して表示されるリストを見て調べます)
- COEIROINK
- COEIROINKを立ち上げたうえで、[ドキュメント](http://127.0.0.1:50031/docs#/%E3%81%9D%E3%81%AE%E4%BB%96/speakers_speakers_get)を参考に調べます。(Try it out → Executeの順に押して表示されるリストを見て調べます)
- LMROID
- LMROIDを立ち上げたうえで、[ドキュメント](http://127.0.0.1:50073/docs#/%E3%81%9D%E3%81%AE%E4%BB%96/speakers_speakers_get)を参考に調べます。(Try it out → Executeの順に押して表示されるリストを見て調べます)


## Build

Expand Down
2 changes: 1 addition & 1 deletion THIRD-PARTY-NOTICES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# voicevox

https://github.com/Hiroshiba/voicevox/tree/main/src/openapi
https://github.com/VOICEVOX/voicevox/tree/main/src/openapi

```
GNU LESSER GENERAL PUBLIC LICENSE
Expand Down
5 changes: 4 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ export async function main()
const speaker = process.argv[process.argv.indexOf("-s") + 1];
var comment = process.argv[process.argv.indexOf("-c") + 1];
const dictionary = process.argv[process.argv.indexOf("-d") + 1];
var port = process.argv.indexOf("-p") >0 ? process.argv[process.argv.indexOf("-p") + 1] : "50021";
var ip = process.argv.indexOf("-i") >0 ? process.argv[process.argv.indexOf("-i") + 1] : "127.0.0.1";

console.log(`output: ${output}`);
console.log(`speaker: ${speaker}`);
console.log(`comment: ${comment}`);
console.log(`dictionary: ${dictionary}`);
console.log(`connect to ${ip}:${port}`);

//読めない文字を置き換える
if (dictionary.indexOf(".exe") < 0)
Expand All @@ -27,7 +30,7 @@ export async function main()

const api = new DefaultApi(new Configuration(
{
basePath: "http://127.0.0.1:50021",
basePath: `http://${ip}:${port}`,
fetchApi: fetch as any as FetchAPI,
}));
const query = await api.audioQueryAudioQueryPost({
Expand Down
12 changes: 12 additions & 0 deletions openapi/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,20 @@ apis/index.ts
index.ts
models/AccentPhrase.ts
models/AudioQuery.ts
models/EngineManifest.ts
models/HTTPValidationError.ts
models/LicenseInfo.ts
models/Mora.ts
models/ParseKanaBadRequest.ts
models/Preset.ts
models/Speaker.ts
models/SpeakerInfo.ts
models/SpeakerStyle.ts
models/StyleInfo.ts
models/SupportedDevicesInfo.ts
models/UpdateInfo.ts
models/UserDictWord.ts
models/ValidationError.ts
models/WordTypes.ts
models/index.ts
runtime.ts
2 changes: 1 addition & 1 deletion openapi/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.1.1
5.3.0
Loading

0 comments on commit b608b32

Please sign in to comment.