Spaces:
Build error
Build error
File size: 502 Bytes
bcfd9f0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
from abc import ABC, abstractmethod
MAX_WAV_VALUE = 32768.0
class Vocoder(ABC):
"""
Produces audio data for tacotron2 mel spectrogram output
"""
@abstractmethod
def generate_audio(self, mel_output):
"""
Produces wav audio data for a given mel output.
Parameters
----------
mel_output : Tensor
Mel spectrogram output
Returns
-------
np.array
Generated audio data
"""
pass
|