MCPcopy Create free account
hub / github.com/MoonInTheRiver/DiffSinger / BaseVocoder

Class BaseVocoder

vocoders/base_vocoder.py:22–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21
22class BaseVocoder:
23 def spec2wav(self, mel):
24 """
25
26 :param mel: [T, 80]
27 :return: wav: [T']
28 """
29
30 raise NotImplementedError
31
32 @staticmethod
33 def wav2spec(wav_fn):
34 """
35
36 :param wav_fn: str
37 :return: wav, mel: [T, 80]
38 """
39 raise NotImplementedError

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected