voice-changer/server/voice_changer/RVC/embedder/FairseqContentvec.py
2023-05-02 12:11:00 +09:00

12 lines
431 B
Python

from torch import device
from const import EnumEmbedderTypes
from voice_changer.RVC.embedder.Embedder import Embedder
from voice_changer.RVC.embedder.FairseqHubert import FairseqHubert
class FairseqContentvec(FairseqHubert):
def loadModel(self, file: str, dev: device, isHalf: bool = True) -> Embedder:
super().loadModel(file, dev, isHalf)
self.embedderType = EnumEmbedderTypes.contentvec
return self