Merge pull request #129 from set-soft/fix_python_speaker_id

[Fix] speaker_id was always 0/None
This commit is contained in:
Michael Hansen
2023-07-06 15:43:25 -05:00
committed by GitHub
+1 -1
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