Skip to content

Commit fe1ca37

Browse files
authored
Add more example to TTS doc (#1917)
1 parent 31dbb75 commit fe1ca37

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

torchaudio/pipelines/_tts/impl.py

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,18 @@ class _Tacotron2GriffinLimPhoneBundle(_GriffinLimMixin, _Tacotron2Mixin, _PhoneM
242242
<source src="https://download.pytorch.org/torchaudio/doc-assets/TACOTRON2_GRIFFINLIM_CHAR_LJSPEECH.wav" type="audio/wav">
243243
Your browser does not support the <code>audio</code> element.
244244
</audio>
245+
246+
Example - "The examination and testimony of the experts enabled the Commission to conclude that five shots may have been fired,"
247+
248+
.. image:: https://download.pytorch.org/torchaudio/doc-assets/TACOTRON2_GRIFFINLIM_CHAR_LJSPEECH_v2.png
249+
:alt: Spectrogram generated by Tacotron2
250+
251+
.. raw:: html
252+
253+
<audio controls="controls">
254+
<source src="https://download.pytorch.org/torchaudio/doc-assets/TACOTRON2_GRIFFINLIM_CHAR_LJSPEECH_v2.wav" type="audio/wav">
255+
Your browser does not support the <code>audio</code> element.
256+
</audio>
245257
''') # noqa: E501
246258

247259
TACOTRON2_GRIFFINLIM_PHONE_LJSPEECH = _Tacotron2GriffinLimPhoneBundle(
@@ -277,6 +289,19 @@ class _Tacotron2GriffinLimPhoneBundle(_GriffinLimMixin, _Tacotron2Mixin, _PhoneM
277289
<source src="https://download.pytorch.org/torchaudio/doc-assets/TACOTRON2_GRIFFINLIM_PHONE_LJSPEECH.wav" type="audio/wav">
278290
Your browser does not support the <code>audio</code> element.
279291
</audio>
292+
293+
Example - "The examination and testimony of the experts enabled the Commission to conclude that five shots may have been fired,"
294+
295+
.. image:: https://download.pytorch.org/torchaudio/doc-assets/TACOTRON2_GRIFFINLIM_PHONE_LJSPEECH_v2.png
296+
:alt: Spectrogram generated by Tacotron2
297+
298+
.. raw:: html
299+
300+
<audio controls="controls">
301+
<source src="https://download.pytorch.org/torchaudio/doc-assets/TACOTRON2_GRIFFINLIM_PHONE_LJSPEECH_v2.wav" type="audio/wav">
302+
Your browser does not support the <code>audio</code> element.
303+
</audio>
304+
280305
''') # noqa: E501
281306

282307
TACOTRON2_WAVERNN_CHAR_LJSPEECH = _Tacotron2WaveRNNCharBundle(
@@ -313,6 +338,18 @@ class _Tacotron2GriffinLimPhoneBundle(_GriffinLimMixin, _Tacotron2Mixin, _PhoneM
313338
<source src="https://download.pytorch.org/torchaudio/doc-assets/TACOTRON2_WAVERNN_CHAR_LJSPEECH.wav" type="audio/wav">
314339
Your browser does not support the <code>audio</code> element.
315340
</audio>
341+
342+
Example - "The examination and testimony of the experts enabled the Commission to conclude that five shots may have been fired,"
343+
344+
.. image:: https://download.pytorch.org/torchaudio/doc-assets/TACOTRON2_WAVERNN_CHAR_LJSPEECH_v2.png
345+
:alt: Spectrogram generated by Tacotron2
346+
347+
.. raw:: html
348+
349+
<audio controls="controls">
350+
<source src="https://download.pytorch.org/torchaudio/doc-assets/TACOTRON2_WAVERNN_CHAR_LJSPEECH_v2.wav" type="audio/wav">
351+
Your browser does not support the <code>audio</code> element.
352+
</audio>
316353
''') # noqa: E501
317354

318355
TACOTRON2_WAVERNN_PHONE_LJSPEECH = _Tacotron2WaveRNNPhoneBundle(
@@ -353,4 +390,17 @@ class _Tacotron2GriffinLimPhoneBundle(_GriffinLimMixin, _Tacotron2Mixin, _PhoneM
353390
<source src="https://download.pytorch.org/torchaudio/doc-assets/TACOTRON2_WAVERNN_PHONE_LJSPEECH.wav" type="audio/wav">
354391
Your browser does not support the <code>audio</code> element.
355392
</audio>
393+
394+
395+
Example - "The examination and testimony of the experts enabled the Commission to conclude that five shots may have been fired,"
396+
397+
.. image:: https://download.pytorch.org/torchaudio/doc-assets/TACOTRON2_WAVERNN_PHONE_LJSPEECH_v2.png
398+
:alt: Spectrogram generated by Tacotron2
399+
400+
.. raw:: html
401+
402+
<audio controls="controls">
403+
<source src="https://download.pytorch.org/torchaudio/doc-assets/TACOTRON2_WAVERNN_PHONE_LJSPEECH_v2.wav" type="audio/wav">
404+
Your browser does not support the <code>audio</code> element.
405+
</audio>
356406
''') # noqa: E501

0 commit comments

Comments
 (0)