Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/oatsu-gh/ENUNU
Browse files Browse the repository at this point in the history
  • Loading branch information
oatsu-gh committed Jul 10, 2022
2 parents 9192c83 + 3eb5273 commit 29be4a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*.wav
*.pth
*.cache
*.csv
*.zip
#data
dump
Expand Down
2 changes: 1 addition & 1 deletion synthesis/enulib/world.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def estimate_bit_depth(wav: np.ndarray) -> str:
32bitの最大値: 2147483647
"""
# 音量の最大値を取得
max_gain = np.max(np.abs(wav))
max_gain = np.nanmax(np.abs(wav))
# 学習データのビット深度を推定(8388608=2^24)
if max_gain > 8388608:
return 'int32'
Expand Down

0 comments on commit 29be4a4

Please sign in to comment.