[Fix] speaker_id was always 0/None

- Wrong condition put 0 for a specified value and let None pass
This commit is contained in:
Salvador E. Tropea
2023-07-04 18:34:11 -03:00
parent 109e56890d
commit 31a7d269ff

View File

@@ -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