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

ビルド時のコアのバージョンを 0.12.0-preview.3 に上げる #401

Merged

Conversation

PickledChair
Copy link
Member

@PickledChair PickledChair commented May 12, 2022

内容

タイトルの通りです。

コアのバージョン 0.12.0-preview.2, 0.12.0-preview.3 で以下の変更が加えられました:

  • voicevox_core リポジトリで提供されている、バイナリを含む zip ファイルがアーキテクチャごとに分かれるようになった
  • 共有ライブラリの名称が全てのアーキテクチャで統一 (Windows: core.dll, Linux: libcore.so, macOS: libcore.dylib) されるようになった
  • metas.json やモデルファイルが共有ライブラリに埋め込まれるようになった

これらの変更に対応します。

テストリリースはこちらです: https://github.com/PickledChair/voicevox_engine/releases/tag/0.12.3-pickledchair-preview.6

関連 Issue

close #396

@github-actions
Copy link

github-actions bot commented May 12, 2022

Coverage Result

Resultを開く
Name Stmts Miss Cover
voicevox_engine/init.py 1 0 coverage-100%
voicevox_engine/acoustic_feature_extractor.py 75 0 coverage-100%
voicevox_engine/dev/synthesis_engine/init.py 2 0 coverage-100%
voicevox_engine/dev/synthesis_engine/mock.py 40 4 coverage-90%
voicevox_engine/experimental/init.py 0 0 coverage-100%
voicevox_engine/experimental/guided_extractor.py 128 94 coverage-27%
voicevox_engine/experimental/julius4seg/init.py 0 0 coverage-100%
voicevox_engine/experimental/julius4seg/converter.py 298 295 coverage-1%
voicevox_engine/experimental/julius4seg/sp_inserter.py 116 89 coverage-23%
voicevox_engine/full_context_label.py 162 3 coverage-98%
voicevox_engine/kana_parser.py 86 1 coverage-99%
voicevox_engine/model.py 147 7 coverage-95%
voicevox_engine/mora_list.py 4 0 coverage-100%
voicevox_engine/part_of_speech_data.py 5 0 coverage-100%
voicevox_engine/preset/Preset.py 12 0 coverage-100%
voicevox_engine/preset/PresetLoader.py 34 1 coverage-97%
voicevox_engine/preset/init.py 3 0 coverage-100%
voicevox_engine/synthesis_engine/init.py 5 0 coverage-100%
voicevox_engine/synthesis_engine/core_wrapper.py 182 145 coverage-20%
voicevox_engine/synthesis_engine/make_synthesis_engines.py 52 43 coverage-17%
voicevox_engine/synthesis_engine/synthesis_engine.py 181 69 coverage-62%
voicevox_engine/synthesis_engine/synthesis_engine_base.py 68 9 coverage-87%
voicevox_engine/user_dict.py 107 10 coverage-91%
voicevox_engine/utility/init.py 3 0 coverage-100%
voicevox_engine/utility/connect_base64_waves.py 35 3 coverage-91%
voicevox_engine/utility/engine_root.py 9 2 coverage-78%
TOTAL 1755 775 coverage-56%

@PickledChair PickledChair marked this pull request as ready for review May 12, 2022 21:02
Comment on lines +295 to +299
# NOTE: CDLL クラスのコンストラクタの引数 name には文字列を渡す必要がある。
# Windows 環境では PathLike オブジェクトを引数として渡すと初期化に失敗する。
return CDLL(
str((core_dir / CORENAME_DICT[platform.system()]).resolve(strict=True))
)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

前に #388 を実装したときに、Windows 版の新しいコアが読み込めないバグを埋め込んでいたことに気づいたので、合わせて修正しました(最後のエンジンの実行テストに Windows 版だけ失敗したので気がつきました……)。

Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

Dockerfile Show resolved Hide resolved
Copy link
Member

@takana-v takana-v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

READMEのビルドの項目も修正をお願いします。
それ以外は問題ないと思います。

@PickledChair
Copy link
Member Author

READMEのビルドの項目も修正をお願いします。

ご指摘ありがとうございます。修正しました!

Copy link
Member

@takana-v takana-v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@takana-v takana-v merged commit 01f1fd2 into VOICEVOX:master May 14, 2022
@PickledChair PickledChair deleted the build-with-core-version-0-12-0-preview-3 branch September 3, 2022 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ビルド周りをコア 0.12.0-preview.3に対応する
3 participants