


text = "Hello World!"
Encode text
input, lengths = processor(text)
Generate (mel-scale) spectrogram
specgram, lengths, _ = tacotron2.infer(input, lengths)
Convert spectrogram to waveform
waveforms, lengths = vocoder(specgram, lengths)
Save audio
torchaudio.save('hello-world.wav', waveforms, vocoder.sample_rate)



```
For the details of this API please refer to the documentation. You can also try this from the tutorial.
(Beta) Self-Supervised Model Support