debug
This commit is contained in:
parent
9f13c8e43c
commit
d4f6b7361f
4
webUI.py
4
webUI.py
|
@ -214,9 +214,9 @@ def vc_fn2(_text, _lang, _gender, _rate, _volume, sid, output_format, vc_transfo
|
|||
_volume = f"+{int(_volume*100)}%" if _volume >= 0 else f"{int(_volume*100)}%"
|
||||
if _lang == "Auto":
|
||||
_gender = "Male" if _gender == "男" else "Female"
|
||||
subprocess.run([r"workenv\python.exe", "edgetts/tts.py", _text, _lang, _rate, _volume, _gender])
|
||||
subprocess.run([r"python", "edgetts/tts.py", _text, _lang, _rate, _volume, _gender])
|
||||
else:
|
||||
subprocess.run([r"workenv\python.exe", "edgetts/tts.py", _text, _lang, _rate, _volume])
|
||||
subprocess.run([r"python", "edgetts/tts.py", _text, _lang, _rate, _volume])
|
||||
target_sr = 44100
|
||||
y, sr = librosa.load("tts.wav")
|
||||
resampled_y = librosa.resample(y, orig_sr=sr, target_sr=target_sr)
|
||||
|
|
Loading…
Reference in New Issue