feat: add single-call action protocol and Android stage interfaces

This commit is contained in:
zenord
2026-10-13 00:41:55 +08:00
parent dfd1372ba2
commit e91354c9e8
41 changed files with 1438 additions and 70 deletions
+12 -1
View File
@@ -13,7 +13,7 @@ every file has SHA256/bytes. Pi approval pins exact manifest SHA outside the man
Self-authored approved/status fields never enable runtime capabilities.
Each conversation package: unique `id`, `emotion:neutral|happy|sad`,
`visualIntensity:0|1`, `runtimeManifest:{path,sha256}` referencing runtime04 format
`visualIntensity:0|1`, `mouthBodySha256`, `runtimeManifest:{path,sha256}` referencing runtime04 format
(continuous body + own 97 PTS registered frames × five RGBA aperture levels,
own curves/anchors/coordinates). Body SHA, frame count and decoded PTS bind every
mouth track to that exact body; no cross-body patches/masks/coordinates reuse.
@@ -29,6 +29,7 @@ reviewed edge, no arbitrary alpha cut. Supply dense seam frames, real-speed loop
and full-scale/close previews, not just matching endpoints.
Actions: exactly `asset_01`, `asset_02`, `kind:dance`, `mouthAllowed:false`,
`disallowTALK:true`,
`entryAnchor:A`, `returnAnchor:A`, `clip` with file SHA/dimensions/frameCount/PTS/
duration/audio track metadata, `audioEndUs`, `reviewEvidence`.
Use a single complete video including entry, music dance and return A, or list
@@ -50,3 +51,13 @@ Asset handoff required first: slight happy/sad TALK samples and own runtime04
mouths/entry-exit evidence. Pi reviews exact manifest + timed previews; only then
expand idle variants and two music dances. Gate1 and deterministic mock traces
cannot certify naturalness or device AudioRecord/GPU/≤1s perception.
Runtime selection keeps `selectedEmotion/selectedIntensity` (model) distinct from
`visualEmotion/visualIntensity/packageId/degraded/reason` (admitted visual). User
camera cues are independent and never select these role packages. Production
runtime04 parser: `app/src/main/java/com/gorios/lanvoice/avatar/ContinuousAvatarManifest.kt`;
v2 index parser: `app/src/main/java/com/gorios/lanvoice/avatar/EmotionActionManifest.kt`.
Each package should use `packId:a01-expression-action-v1-<packageId>-runtime-04`;
runtime04 body/patchFormat/patches/mouthStates/stateRouting field shapes stay intact.
Entry/return bridges carry actual decoded frame PTS; `audioEndUs` records measured
last audio timestamp, completion also waits actual media stop and restored A.