mirror of
https://github.com/pstrueb/piper.git
synced 2026-04-18 06:15:30 +00:00
[Fix] speaker_id was always 0/None
- Wrong condition put 0 for a specified value and let None pass
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user