Unverified Commit c670898c authored by Caroline Chen's avatar Caroline Chen Committed by GitHub
Browse files

Doc fixes (#1982)

parent b3c2cfce
...@@ -209,7 +209,7 @@ class Functional(TestBaseMixin): ...@@ -209,7 +209,7 @@ class Functional(TestBaseMixin):
) )
@parameterized.expand([(0., ), (1., ), (2., ), (3., )]) @parameterized.expand([(0., ), (1., ), (2., ), (3., )])
def test_spectogram_grad_at_zero(self, power): def test_spectrogram_grad_at_zero(self, power):
"""The gradient of power spectrogram should not be nan but zero near x=0 """The gradient of power spectrogram should not be nan but zero near x=0
https://github.com/pytorch/audio/issues/993 https://github.com/pytorch/audio/issues/993
......
...@@ -106,7 +106,7 @@ class Tacotron2TTSBundle(ABC): ...@@ -106,7 +106,7 @@ class Tacotron2TTSBundle(ABC):
>>> # Convert spectrogram to waveform >>> # Convert spectrogram to waveform
>>> waveforms, lengths = vocoder(specgram, lengths) >>> waveforms, lengths = vocoder(specgram, lengths)
>>> >>>
>>> torchaudio.save('hello-tts.wav', waveforms[0], vocoder.sample_rate) >>> torchaudio.save('hello-tts.wav', waveforms, vocoder.sample_rate)
Example - Phoneme-based TTS pipeline with Tacotron2 and WaveRNN Example - Phoneme-based TTS pipeline with Tacotron2 and WaveRNN
>>> >>>
...@@ -120,7 +120,7 @@ class Tacotron2TTSBundle(ABC): ...@@ -120,7 +120,7 @@ class Tacotron2TTSBundle(ABC):
>>> import torchaudio >>> import torchaudio
>>> >>>
>>> text = "Hello, TTS!" >>> text = "Hello, TTS!"
>>> bundle = torchaudio.pipelines.TACOTRON2_WAVERNN_PHONEME_LJSPEECH >>> bundle = torchaudio.pipelines.TACOTRON2_WAVERNN_PHONE_LJSPEECH
>>> >>>
>>> # Build processor, Tacotron2 and WaveRNN model >>> # Build processor, Tacotron2 and WaveRNN model
>>> processor = bundle.get_text_processor() >>> processor = bundle.get_text_processor()
...@@ -142,7 +142,7 @@ class Tacotron2TTSBundle(ABC): ...@@ -142,7 +142,7 @@ class Tacotron2TTSBundle(ABC):
>>> # Convert spectrogram to waveform >>> # Convert spectrogram to waveform
>>> waveforms, lengths = vocoder(specgram, lengths) >>> waveforms, lengths = vocoder(specgram, lengths)
>>> >>>
>>> torchaudio.save('hello-tts.wav', waveforms[0], vocoder.sample_rate) >>> torchaudio.save('hello-tts.wav', waveforms, vocoder.sample_rate)
""" """
# Using the inner class so that these interfaces are not directly exposed on # Using the inner class so that these interfaces are not directly exposed on
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment