From b371beb6cef0abc842df1c24d8548fb9a6e67b31 Mon Sep 17 00:00:00 2001 From: Nikita Shulga Date: Thu, 29 Sep 2022 18:50:46 -0700 Subject: [PATCH] Add jupyter cell for deep_phonemizer --- conf.py | 1 + intermediate_source/text_to_speech_with_torchaudio.py | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/conf.py b/conf.py index 191d3cb4dfe..a1882205e6c 100644 --- a/conf.py +++ b/conf.py @@ -89,6 +89,7 @@ 'gallery_dirs': ['beginner', 'intermediate', 'advanced', 'recipes', 'prototype'], 'filename_pattern': '.py', 'ignore_pattern': re.compile(f"({'|'.join(NOT_RUN)}).py$"), + 'promote_jupyter_magic': True, 'backreferences_dir': None } diff --git a/intermediate_source/text_to_speech_with_torchaudio.py b/intermediate_source/text_to_speech_with_torchaudio.py index a6dc8dcf96a..66fc92f4396 100644 --- a/intermediate_source/text_to_speech_with_torchaudio.py +++ b/intermediate_source/text_to_speech_with_torchaudio.py @@ -7,9 +7,6 @@ """ -# %matplotlib inline - - ###################################################################### # Overview # -------- @@ -52,8 +49,11 @@ # encoding. # -# When running this example in notebook, install DeepPhonemizer -# !pip3 install deep_phonemizer +# %% +# .. code-block:: bash +# +# %%bash +# pip3 install deep_phonemizer import torch import torchaudio