Adopt PanPhon realization channel
This commit is contained in:
parent
13c29fea12
commit
21c1046f9d
11 changed files with 89 additions and 27 deletions
|
|
@ -71,13 +71,14 @@ public sealed record SpeechTimingReceipt(
|
|||
[MessagePackObject]
|
||||
public sealed record SpeechUtteranceEmbeddingInputSnapshot(
|
||||
[property: Key(0)] float[] TextEmbedding,
|
||||
[property: Key(1)] float[] Prosody,
|
||||
[property: Key(2)] float[] CharacterState)
|
||||
[property: Key(1)] float[] PhoneticRealization,
|
||||
[property: Key(2)] float[] Prosody,
|
||||
[property: Key(3)] float[] CharacterState)
|
||||
{
|
||||
public UtteranceEmbeddingInput ToInput() => new(TextEmbedding, Prosody, CharacterState);
|
||||
public UtteranceEmbeddingInput ToInput() => new(TextEmbedding, PhoneticRealization, Prosody, CharacterState);
|
||||
|
||||
public static SpeechUtteranceEmbeddingInputSnapshot From(UtteranceEmbeddingInput input) =>
|
||||
new([.. input.SpeechTextEmbedding], [.. input.ProsodyAndEmphasisHints], [.. input.CharacterStateVector]);
|
||||
new([.. input.SpeechTextEmbedding], [.. input.PhoneticRealizationVector], [.. input.ProsodyAndEmphasisHints], [.. input.CharacterStateVector]);
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
|
|
|
|||
Loading…
Reference in a new issue