voice-changer/server/voice_changer/RVC/embedder/FairseqHubertJp.py

11 lines
404 B
Python
Raw Normal View History

2023-05-02 06:11:00 +03:00
from torch import device
from voice_changer.RVC.embedder.Embedder import Embedder
from voice_changer.RVC.embedder.FairseqHubert import FairseqHubert
class FairseqHubertJp(FairseqHubert):
def loadModel(self, file: str, dev: device, isHalf: bool = True) -> Embedder:
super().loadModel(file, dev, isHalf)
super().setProps("hubert-base-japanese", file, dev, isHalf)
2023-05-02 06:11:00 +03:00
return self