piper.unity icon indicating copy to clipboard operation
piper.unity copied to clipboard

How do I use this with Voices that have multiple Speakers such as en-US arctic and libritts_r?

Open rikochet9 opened this issue 2 years ago • 1 comments

I believe the input Dictionary in PiperManager.TextToSpeech() needs an "sid" entry but I haven't figured out what values it wants for it in order to work.

Great project so far.

rikochet9 avatar Mar 12 '24 05:03 rikochet9

Okay, I figured it out. This is what was needed:

var sidTensor = new TensorInt(new TensorShape(1), new int[] { speakerId });
input.Add("sid", sidTensor);

rikochet9 avatar Mar 16 '24 05:03 rikochet9