From 17487ad70ab8f97cd7e9c559c82278b1c82d47a0 Mon Sep 17 00:00:00 2001 From: mrq Date: Tue, 10 Sep 2024 14:00:27 -0500 Subject: [PATCH] weird quirk in process_emilia.py where language gets mutated, somehow (I hate python) --- scripts/process_emilia.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/process_emilia.py b/scripts/process_emilia.py index ded3323..1b54d28 100644 --- a/scripts/process_emilia.py +++ b/scripts/process_emilia.py @@ -146,7 +146,7 @@ def process( wavs.append(( outpath, text, - language.lower(), + language, waveform, sample_rate )) @@ -156,7 +156,7 @@ def process( try: outpath, text, language, waveform, sample_rate = job - phones = phonemize(text, language=language) + phones = phonemize(text, language=f'{language}'.lower()) qnt = quantize(waveform, sr=sample_rate, device=device)