Skip to content

Commit

Permalink
timing補正ツールが効かない不具合を修正
Browse files Browse the repository at this point in the history
path指定する変数間違ってた
  • Loading branch information
oatsu-gh committed Mar 30, 2022
1 parent 9f1e40e commit 140f124
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions synthesis/enunu.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def main_as_plugin(path_plugin: str, path_wav: Union[str, None]) -> str:
for path_extension in extension_list:
print(f'{datetime.now()} : editing timing with {path_extension}')
# 変更前のモノラベルを読んでおく
with open(path_mono_duration, encoding='utf-8') as f:
with open(path_mono_timing, encoding='utf-8') as f:
str_mono_old = f.read()
enulib.extensions.run_extension(
path_extension,
Expand All @@ -410,7 +410,7 @@ def main_as_plugin(path_plugin: str, path_wav: Union[str, None]) -> str:
mono_timing=path_mono_timing
)
# 変更後のモノラベルを読む
with open(path_mono_duration, encoding='utf-8') as f:
with open(path_mono_timing, encoding='utf-8') as f:
str_mono_new = f.read()
# モノラベルの時刻が変わっていたらフルラベルに転写して、
# そうでなければフルラベルの時刻をモノラベルに転写する。
Expand Down Expand Up @@ -542,7 +542,7 @@ def main(path_plugin: str, path_wav_out: Union[str, None]):


if __name__ == '__main__':
print('_____ξ ・ヮ・)ξ < ENUNU v0.3.0 ________')
print('_____ξ ・ヮ・)ξ < ENUNU v0.3.1 ________')
print(f'argv: {argv}')
if len(argv) == 3:
main(argv[1], argv[2])
Expand Down

0 comments on commit 140f124

Please sign in to comment.