24 lines
466 B
Python
24 lines
466 B
Python
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()
|