From cbe21745df58ce220631ac34525e17b10c225c61 Mon Sep 17 00:00:00 2001 From: mrq Date: Fri, 12 May 2023 17:41:26 +0000 Subject: [PATCH] I am very smart (need to validate) --- src/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.py b/src/utils.py index 2b3b52e..3d42e72 100755 --- a/src/utils.py +++ b/src/utils.py @@ -2320,9 +2320,9 @@ def phonemizer( text, language="en-us" ): backend = _get_backend(language=language, backend=args.phonemizer_backend) if backend is not None: - tokens = backend.phonemize( text, strip=True ) + tokens = backend.phonemize( [text], strip=True ) else: - tokens = phonemize( text, language=language, strip=True, preserve_punctuation=True, with_stress=True ) + tokens = phonemize( [text], language=language, strip=True, preserve_punctuation=True, with_stress=True ) return tokens[0] if len(tokens) == 0 else tokens tokenized = " ".join( tokens )