Skip to content

Commit

Permalink
[release-0.15] ビルド後テストの修正漏れ (#1019)
Browse files Browse the repository at this point in the history
ビルド後テストの修正漏れ
  • Loading branch information
Hiroshiba authored Jan 20, 2024
1 parent 8203ac4 commit ed0cbe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build_util/check_release_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ def test_release_build(dist_dir: Path, skip_run_process: bool) -> None:
# テキスト -> クエリ
text = "こんにちは、音声合成の世界へようこそ"
req = Request(
base_url + "audio_query?" + urlencode({"style_id": "1", "text": text}),
base_url + "audio_query?" + urlencode({"speaker": "1", "text": text}),
method="POST",
)
with urlopen(req) as res:
query = json.loads(res.read().decode("utf-8"))

# クエリ -> 音声
req = Request(base_url + "synthesis?style_id=1", method="POST")
req = Request(base_url + "synthesis?speaker=1", method="POST")
req.add_header("Content-Type", "application/json")
req.data = json.dumps(query).encode("utf-8")
with urlopen(req) as res:
Expand Down

0 comments on commit ed0cbe4

Please sign in to comment.