voice-changer/server/voice_changer/RVC/embedder/FairseqHubertJp.py
w-okada 0bd7bfafc5 Refctoring
- embedder type from enum to Literal
2023-07-07 03:56:45 +09:00

11 lines
404 B
Python

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)
return self