mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-06 03:57:44 +08:00
Add files via upload
This commit is contained in:
parent
d1ec88193f
commit
396043a2ed
@ -66,8 +66,9 @@ def name2go(wav_name):
|
|||||||
print("%s-filtered" % (wav_name, tmp_max))
|
print("%s-filtered" % (wav_name, tmp_max))
|
||||||
return
|
return
|
||||||
tmp_audio32 = (tmp_audio / tmp_max * (maxx * alpha*32768)) + ((1 - alpha)*32768) * tmp_audio
|
tmp_audio32 = (tmp_audio / tmp_max * (maxx * alpha*32768)) + ((1 - alpha)*32768) * tmp_audio
|
||||||
|
tmp_audio32b = (tmp_audio / tmp_max * (maxx * alpha*1145.14)) + ((1 - alpha)*1145.14) * tmp_audio
|
||||||
tmp_audio = librosa.resample(
|
tmp_audio = librosa.resample(
|
||||||
tmp_audio32, orig_sr=32000, target_sr=16000
|
tmp_audio32b, orig_sr=32000, target_sr=16000
|
||||||
)#不是重采样问题
|
)#不是重采样问题
|
||||||
tensor_wav16 = torch.from_numpy(tmp_audio)
|
tensor_wav16 = torch.from_numpy(tmp_audio)
|
||||||
if (is_half == True):
|
if (is_half == True):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user