mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-02-03 00:33:57 +03:00
experimental: remove torch audio
This commit is contained in:
parent
cacd127c76
commit
b86e15a79f
@ -192,7 +192,6 @@ class RVCr2(VoiceChangerModel):
|
||||
if_f0 = 1 if self.slotInfo.f0 else 0
|
||||
embOutputLayer = self.slotInfo.embOutputLayer
|
||||
useFinalProj = self.slotInfo.useFinalProj
|
||||
|
||||
|
||||
try:
|
||||
audio_out, self.pitchf_buffer, self.feature_buffer = self.pipeline.exec(
|
||||
@ -211,8 +210,8 @@ class RVCr2(VoiceChangerModel):
|
||||
protect,
|
||||
outSize
|
||||
)
|
||||
# result = audio_out[-outSize:].detach().cpu().numpy() * np.sqrt(vol)
|
||||
result = audio_out.detach().cpu().numpy() * np.sqrt(vol)
|
||||
# result = audio_out.detach().cpu().numpy() * np.sqrt(vol)
|
||||
result = audio_out[-outSize:].detach().cpu().numpy() * np.sqrt(vol)
|
||||
|
||||
result = cast(
|
||||
AudioInOut,
|
||||
|
Loading…
Reference in New Issue
Block a user