Skip to content

Commit

Permalink
バージョン記載を修正。v0.3.1の更新情報を記載。名前を付けて保存のタイミングを合成後に変更。
Browse files Browse the repository at this point in the history
  • Loading branch information
oatsu-gh committed Sep 1, 2024
1 parent 855475f commit f2a2dbf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 7 additions & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ extensions:
- 拡張機能に **lyric_nyaizer** を追加。
- ust_editor に指定して使用してください。歌詞を `ny a` にします。

## v0.3.2
## v0.3.0

- 実行時に「名前を付けて保存」ダイアログを表示するように仕様変更。
- LABなどの中間ファイルは変わらずustと同じフォルダに生成されます。
Expand All @@ -62,3 +62,9 @@ extensions:
- uSFGAN (https://github.com/nnsvs/HN-UnifiedSourceFilterGAN)
- ParallelWaveGAN (https://github.com/nnsvs/ParallelWaveGAN)
- PyTorch のインストールに light-the-torch を使用するように変更。

## v0.3.1

- PyTorch のインストールに失敗する不具合を修正。
- 「名前を付けて保存」のタイミングを音声合成前ではなく音声合成後に変更。
- 保存わすれで時間を無駄にするのを防ぐため。
6 changes: 5 additions & 1 deletion simple_enunu.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,9 +591,13 @@ def main(path_plugin: str, path_wav: Union[str, None] = None, play_wav=True) ->
# WAV出力先が未定の場合
if path_wav is None:
print('表示されているエクスプローラーの画面から、WAVファイルに名前を付けて保存してください。')
if out_dir is not None:
initialdir = out_dir
else:
initialdir = expanduser(join('~', 'Desktop'))
# wavファイルの保存先を指定
path_wav = asksaveasfilename(
initialdir=expanduser(join('~', 'Desktop')),
initialdir=initialdir,
initialfile=f'{songname}.wav',
filetypes=[('Wave sound file', '.wav'), ('All files', '*')],
defaultextension='.wav')
Expand Down

0 comments on commit f2a2dbf

Please sign in to comment.