experimental: remove torch audio

This commit is contained in:
w-okada 2023-07-28 00:45:51 +09:00
parent cacd127c76
commit b86e15a79f

View File

@ -193,7 +193,6 @@ class RVCr2(VoiceChangerModel):
embOutputLayer = self.slotInfo.embOutputLayer embOutputLayer = self.slotInfo.embOutputLayer
useFinalProj = self.slotInfo.useFinalProj useFinalProj = self.slotInfo.useFinalProj
try: try:
audio_out, self.pitchf_buffer, self.feature_buffer = self.pipeline.exec( audio_out, self.pitchf_buffer, self.feature_buffer = self.pipeline.exec(
sid, sid,
@ -211,8 +210,8 @@ class RVCr2(VoiceChangerModel):
protect, protect,
outSize 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( result = cast(
AudioInOut, AudioInOut,