From 31a7d269ffa3764392a4ecff7eae6f1b04e62c52 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Tue, 4 Jul 2023 18:34:11 -0300 Subject: [PATCH] [Fix] speaker_id was always 0/None - Wrong condition put 0 for a specified value and let None pass --- src/python_run/piper/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python_run/piper/__init__.py b/src/python_run/piper/__init__.py index e14d2c9..8c521ed 100644 --- a/src/python_run/piper/__init__.py +++ b/src/python_run/piper/__init__.py @@ -87,7 +87,7 @@ class Piper: dtype=np.float32, ) - if (self.config.num_speakers > 1) and (speaker_id is not None): + if (self.config.num_speakers > 1) and (speaker_id is None): # Default speaker speaker_id = 0