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
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user