Skip to content

Commit

Permalink
fix: エンジン起動時にデフォルト辞書に加えてユーザー辞書もコンパイルする (#473)
Browse files Browse the repository at this point in the history
エンジン起動時にデフォルト辞書に加えてユーザー辞書もコンパイルする
  • Loading branch information
PickledChair authored and Hiroshiba committed Sep 27, 2022
1 parent 8431ed3 commit 1f2b85b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions voicevox_engine/user_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ def user_dict_startup_processing(
str(compiled_dict_path.resolve()),
)
pyopenjtalk.set_user_dict(str(compiled_dict_path.resolve(strict=True)))
if user_dict_path.is_file():
update_dict(
default_dict_path=default_dict_path, compiled_dict_path=compiled_dict_path
)


def update_dict(
Expand Down

0 comments on commit 1f2b85b

Please sign in to comment.