This commit is contained in:
wataru 2023-04-28 22:22:42 +09:00
parent 1da21aa094
commit d3bf39c322
4 changed files with 16 additions and 3 deletions

View File

@ -8,7 +8,7 @@ class RVCSettings:
gpu: int = 0
dstId: int = 0
f0Detector: str = "pm" # pm or harvest
f0Detector: str = "harvest" # pm or harvest
tran: int = 20
silentThreshold: float = 0.00001
extraConvertSize: int = 1024 * 32

View File

@ -0,0 +1,13 @@
import torch
from transformers import HubertModel
from voice_changer.utils.VoiceChangerModel import AudioInOut
class RinnaHubertBase:
def __init__(self):
model = HubertModel.from_pretrained("rinna/japanese-hubert-base")
model.eval()
self.model = model
def extract(self, audio: AudioInOut):
return self.model(audio)

View File

@ -47,7 +47,7 @@ class SoVitsSvc40Settings:
gpu: int = 0
dstId: int = 0
f0Detector: str = "dio" # dio or harvest
f0Detector: str = "harvest" # dio or harvest
tran: int = 20
noiseScale: float = 0.3
predictF0: int = 0 # 0:False, 1:True

View File

@ -43,7 +43,7 @@ class SoVitsSvc40v2Settings:
gpu: int = 0
dstId: int = 0
f0Detector: str = "dio" # dio or harvest
f0Detector: str = "harvest" # dio or harvest
tran: int = 20
noiseScale: float = 0.3
predictF0: int = 0 # 0:False, 1:True