File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
src/torchaudio/pipelines/_tts Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 91
91
92
92
echo "::endgroup::"
93
93
echo "::group::Build documentation"
94
- # export BUILD_GALLERY=true # TODO put this back?
94
+ export BUILD_GALLERY=true
95
95
(cd docs && make html)
96
96
97
97
echo "::endgroup::"
Original file line number Diff line number Diff line change 49
49
"sphinx.ext.coverage" ,
50
50
"sphinx.ext.napoleon" ,
51
51
"sphinx.ext.viewcode" ,
52
- "sphinxcontrib.katex" ,
52
+ # "sphinxcontrib.katex",
53
53
"sphinxcontrib.bibtex" ,
54
54
"sphinx_gallery.gen_gallery" ,
55
55
"nbsphinx" ,
Original file line number Diff line number Diff line change @@ -161,6 +161,7 @@ def _load_phonemizer(file, dl_kwargs):
161
161
raise RuntimeError ("DeepPhonemizer is not installed. Please install it." )
162
162
163
163
from dp .phonemizer import Phonemizer
164
+ from dp .preprocessing .text import Preprocessor , LanguageTokenizer , SequenceTokenizer
164
165
165
166
# By default, dp issues DEBUG level log.
166
167
logger = logging .getLogger ("dp" )
@@ -174,7 +175,8 @@ def _load_phonemizer(file, dl_kwargs):
174
175
if not os .path .exists (path ):
175
176
dl_kwargs = {} if dl_kwargs is None else dl_kwargs
176
177
download_url_to_file (url , path , ** dl_kwargs )
177
- return Phonemizer .from_checkpoint (path )
178
+ with torch .serialization .safe_globals ([Preprocessor , LanguageTokenizer , SequenceTokenizer ]):
179
+ return Phonemizer .from_checkpoint (path )
178
180
finally :
179
181
logger .setLevel (orig_level )
180
182
You can’t perform that action at this time.
0 commit comments