utilizing local stft
This commit is contained in:
alexlnkp
2023-07-26 04:44:17 +07:00
parent ba86c00f9d
commit 1b76386205
2 changed files with 6 additions and 1 deletions

4
.gitignore vendored
View File

@@ -43,3 +43,7 @@ run_easiergui.bat
tensor-launch.py
values1.json
使用需遵守的协议-LICENSE.txt
trainset_preprocess_pipeline_print.py
configs/48k.json
configs/40k.json
configs/32k.json

View File

@@ -31,6 +31,7 @@ def load_audio(file, sr, DoFormant, Quefrency, Timbre):
# print('stftpitchshift -i "%s" -p 1.0 --rms -w 128 -v 8 -q %s -t %s -o "%s"' % (file, Quefrency, Timbre, file_formanted))
if not file.endswith(".wav"):
print(f"\nfile = {file}\n")
converting = (
ffmpeg.input(file, threads = 0)
.output(f"{file_formanted}.wav")
@@ -40,7 +41,7 @@ def load_audio(file, sr, DoFormant, Quefrency, Timbre):
)
print("formanting...")
os.system(
'runtime\Scripts\stftpitchshift.exe -i "%s" -q %s -t %s -o "%sFORMANTED"'
'stftpitchshift.exe -i "%s" -q %s -t %s -o "%sFORMANTED"'
% (file_formanted, Quefrency, Timbre, file_formanted)
)
print("formanted!")