mirror of
https://github.com/Mangio621/Mangio-RVC-Fork.git
synced 2026-02-24 03:49:51 +01:00
Linux support for overhauled StftPitchShift (cmake build of StftPitchShift for Linux)
Linux support for overhauled StftPitchShift.
This commit is contained in:
13
my_utils.py
13
my_utils.py
@@ -4,12 +4,19 @@ import numpy as np
|
||||
# import praatio
|
||||
# import praatio.praat_scripts
|
||||
import os
|
||||
import sys
|
||||
|
||||
import random
|
||||
|
||||
import sqlite3
|
||||
|
||||
platform_stft_mapping = {
|
||||
'linux': 'stftpitchshift',
|
||||
'darwin': 'stftpitchshift',
|
||||
'win32': 'stftpitchshift.exe',
|
||||
}
|
||||
|
||||
|
||||
stft = platform_stft_mapping.get(sys.platform)
|
||||
# praatEXE = join('.',os.path.abspath(os.getcwd()) + r"\Praat.exe")
|
||||
|
||||
|
||||
@@ -60,8 +67,8 @@ def load_audio(file, sr, DoFormant, Quefrency, Timbre):
|
||||
|
||||
|
||||
os.system(
|
||||
'stftpitchshift.exe -i "%s" -q "%s" -t "%s" -o "%sFORMANTED_%s.wav"'
|
||||
% (file_formanted, Quefrency, Timbre, file_formanted, str(numerator))
|
||||
'%s -i "%s" -q "%s" -t "%s" -o "%sFORMANTED_%s.wav"'
|
||||
% (stft, file_formanted, Quefrency, Timbre, file_formanted, str(numerator))
|
||||
)
|
||||
|
||||
|
||||
|
||||
BIN
stftpitchshift
Normal file
BIN
stftpitchshift
Normal file
Binary file not shown.
Reference in New Issue
Block a user