Adopt PanPhon realization channel

This commit is contained in:
Meta Vens 2026-05-20 22:47:37 +01:00
commit 21c1046f9d
11 changed files with 89 additions and 27 deletions

View file

@ -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]