CantusSVS-hf / basics /base_vocoder.py
liampond
Clean deploy snapshot
c42fe7e
raw
history blame contribute delete
466 Bytes
class BaseVocoder:
def to_device(self, device):
"""
:param device: torch.device or str
"""
raise NotImplementedError()
def get_device(self):
"""
:return: device: torch.device or str
"""
raise NotImplementedError()
def spec2wav(self, mel, **kwargs):
"""
:param mel: [T, 80]
:return: wav: [T']
"""
raise NotImplementedError()