Skip to content

Commit

Permalink
RESOURCE内のclean_character_info.pyスクリプトを利用する (#664)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba committed Apr 17, 2023
1 parent 53c9c5f commit 1c2abad
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
env:
IMAGE_NAME: ${{ secrets.DOCKERHUB_USERNAME }}/voicevox_engine
PYTHON_VERSION: "3.8.10"
VOICEVOX_RESOURCE_VERSION: "0.14.2"
VOICEVOX_RESOURCE_VERSION: "0.14.3-preview.1"
VOICEVOX_CORE_VERSION: "0.14.3"
VOICEVOX_ENGINE_VERSION:
|- # releaseタグ名か、workflow_dispatchでのバージョン名か、latestが入る
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:

env:
PYTHON_VERSION: "3.8.10"
VOICEVOX_RESOURCE_VERSION: "0.14.2"
VOICEVOX_RESOURCE_VERSION: "0.14.3-preview.1"
VOICEVOX_CORE_VERSION: "0.14.3"

jobs:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ RUN <<EOF
EOF

# Download Resource
ARG VOICEVOX_RESOURCE_VERSION=0.14.2
ARG VOICEVOX_RESOURCE_VERSION=0.14.3-preview.1
RUN <<EOF
set -eux

Expand Down
5 changes: 3 additions & 2 deletions build_util/process_voicevox_resource.bash
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ fi
rm -r speaker_info
cp -r $DOWNLOAD_RESOURCE_PATH/character_info speaker_info

# .png_largeファイルを消去する
rm speaker_info/*/icons/*.png_large
# キャラクター情報の前処理をする
python $DOWNLOAD_RESOURCE_PATH/scripts/clean_character_info.py \
--character_info_dir speaker_info/

# マニフェスト
jq -s '.[0] * .[1]' engine_manifest.json $DOWNLOAD_RESOURCE_PATH/engine/engine_manifest.json \
Expand Down

0 comments on commit 1c2abad

Please sign in to comment.