mirror of
https://github.com/Mangio621/Mangio-RVC-Fork.git
synced 2025-12-16 03:27:41 +01:00
fp1
utilizing local stft
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -43,3 +43,7 @@ run_easiergui.bat
|
|||||||
tensor-launch.py
|
tensor-launch.py
|
||||||
values1.json
|
values1.json
|
||||||
使用需遵守的协议-LICENSE.txt
|
使用需遵守的协议-LICENSE.txt
|
||||||
|
trainset_preprocess_pipeline_print.py
|
||||||
|
configs/48k.json
|
||||||
|
configs/40k.json
|
||||||
|
configs/32k.json
|
||||||
|
|||||||
@@ -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))
|
# 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"):
|
if not file.endswith(".wav"):
|
||||||
|
print(f"\nfile = {file}\n")
|
||||||
converting = (
|
converting = (
|
||||||
ffmpeg.input(file, threads = 0)
|
ffmpeg.input(file, threads = 0)
|
||||||
.output(f"{file_formanted}.wav")
|
.output(f"{file_formanted}.wav")
|
||||||
@@ -40,7 +41,7 @@ def load_audio(file, sr, DoFormant, Quefrency, Timbre):
|
|||||||
)
|
)
|
||||||
print("formanting...")
|
print("formanting...")
|
||||||
os.system(
|
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)
|
% (file_formanted, Quefrency, Timbre, file_formanted)
|
||||||
)
|
)
|
||||||
print("formanted!")
|
print("formanted!")
|
||||||
|
|||||||
Reference in New Issue
Block a user