default argument mailabs

pull/10/head
Thomas Werkmeister 2019-07-17 16:04:17 +02:00 committed by GitHub
parent 5fe6ad8932
commit 7be11457e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ def mozilla(root_path, meta_file):
return items
def mailabs(root_path, meta_files):
def mailabs(root_path, meta_files=None):
"""Normalizes M-AI-Labs meta data files to TTS format"""
speaker_regex = re.compile("by_book/(male|female|mix)/(?P<speaker_name>[^/]+)/")
if meta_files is None:
@ -164,4 +164,4 @@ def libri_tts(root_path, meta_files=None):
items.append([text, wav_file, speaker_name])
for item in items:
assert os.path.exists(item[1]), f" [!] wav file is not exist - {item[1]}"
return items
return items