Don't build the cache directory if it already exists.
@@ -61,6 +61,7 @@ def generate_cache_text(cache_audio_dir, cache_text_file):
"exists before executing this function. support for this argument "
"will be removed in version 21.08"
)
+ if not os.path.exists(cache_audio_dir):
os.makedirs(cache_audio_dir)
try:
if not os.path.isfile(cache_text_file):
