mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-23 21:45:00 +03:00
update
This commit is contained in:
parent
1da21aa094
commit
d3bf39c322
@ -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
|
||||
|
13
server/voice_changer/RVC/RinnaHubertBase.py
Normal file
13
server/voice_changer/RVC/RinnaHubertBase.py
Normal 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)
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user