Skip to content

Commit

Permalink
画像ファイル名変更に合わせてrun.py更新
Browse files Browse the repository at this point in the history
  • Loading branch information
takana-v committed Nov 30, 2021
1 parent 599d53a commit 9bcfc15
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,15 +457,13 @@ def speaker_info(speaker_uuid: str):
for style in speaker["styles"]:
id = style["id"]
icon = b64encode_str(
Path(
f"speaker_info/{speaker_uuid}/icons/{speaker['name']}_{id}.png"
).read_bytes()
Path(f"speaker_info/{speaker_uuid}/icons/{id}.png").read_bytes()
)
voice_samples = [
b64encode_str(
Path(
"speaker_info/{}/voice_samples/{}_{}_{}.wav".format(
speaker_uuid, speaker["name"], id, str(j + 1).zfill(3)
"speaker_info/{}/voice_samples/{}_{}.wav".format(
speaker_uuid, id, str(j + 1).zfill(3)
)
).read_bytes()
)
Expand Down

0 comments on commit 9bcfc15

Please sign in to comment.