mirror of
https://github.com/pstrueb/piper.git
synced 2026-04-20 15:14:48 +00:00
Pass speaker id during verification
This commit is contained in:
@@ -686,6 +686,7 @@ class SynthesizerTrn(nn.Module):
|
||||
):
|
||||
x, m_p, logs_p, x_mask = self.enc_p(x, x_lengths)
|
||||
if self.n_speakers > 1:
|
||||
assert sid is not None, "Missing speaker id"
|
||||
g = self.emb_g(sid).unsqueeze(-1) # [b, h, 1]
|
||||
else:
|
||||
g = None
|
||||
|
||||
Reference in New Issue
Block a user