Skip to content

Conversation

PickledChair
Copy link
Member

内容

voicevox_load_openjtalk_dict を実装しました。 #177 で一度実装していましたが、 #178 における Internal の設計の変更を優先するため close していました。それを再実装したものです。

SynthesisEngineInternal それぞれで最低限のテストも実装しました。

関連 Issue

ref #128

pub fn load(&mut self, mecab_dict_dir: impl AsRef<Path>) -> Result<()> {
let result = self.mecab.load(mecab_dict_dir.as_ref());
if result {
self.dict_loaded = true;
Ok(())
} else {
self.dict_loaded = false;
Copy link
Member Author

Choose a reason for hiding this comment

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

#177 (comment) の議論を踏まえて、辞書の load に失敗した時は self.dict_loadedfalse に設定するように変更しました。

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!!
スッキリした印象があります!

@Hiroshiba Hiroshiba merged commit 6764ddb into VOICEVOX:rust Jul 16, 2022
qwerty2501 pushed a commit to qwerty2501/voicevox_core that referenced this pull request Jul 23, 2022
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.

3 participants