Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

追加: クエリ編集のガイドを README.md に記述 #1170

Merged
merged 4 commits into from
Apr 30, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,30 @@ curl -s \

`speaker` に指定する値は `/speakers` エンドポイントで得られる `style_id` です。互換性のために `speaker` という名前になっています。

### 音声合成用のクエリを編集し出力音声を調整
`POST /audio_query` で得られた音声合成用のクエリはパラメータを有しています。これを変更することで出力音声を調整できます。
Hiroshiba marked this conversation as resolved.
Show resolved Hide resolved

例: 話速を 1.5 倍速に変更する([jq](https://stedolan.github.io/jq/)を使用して json をパースしています。)

```bash
echo -n "こんにちは、音声合成の世界へようこそ" >text.txt

curl -s \
-X POST \
"127.0.0.1:50021/audio_query?speaker=1"\
--get --data-urlencode [email protected] \
> query.json

cat "query.json" | jq -c ".speedScale|=1.5" > query_fast.json

curl -s \
-H "Content-Type: application/json" \
-X POST \
-d @query_fast.json \
"127.0.0.1:50021/synthesis?speaker=1" \
> audio_fast.wav
```
Hiroshiba marked this conversation as resolved.
Show resolved Hide resolved

### 読み方を AquesTalk 風記法で取得・修正

#### AquesTalk 風記法
Expand Down
Loading