feat: add single-call action protocol and Android stage interfaces
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
# 0.7.0 action/emotion stage candidate
|
||||
|
||||
Baseline: `e3ee004d29ac472997a813fbdb641ba4983fa5ce`, clean and matching remote main.
|
||||
Clock/interface milestone: `dfd1372`. This is an implemented protocol stage, not a
|
||||
completed visual-action release. Code owner made zero paid calls; asset-owner
|
||||
image/video/music ledger remains separate.
|
||||
|
||||
Implemented: request-local explicit-zone server clock, single system, no persona/
|
||||
history mutation, monotonic deadlines; Qwen schema/Doubao prompt isolation. Ordered
|
||||
emotion/intensity prefix parser emits preload-only prepare, final strict validation
|
||||
cancels invalid preparations. Streaming duplicates/extra fields/escaped strings/
|
||||
types/truncation/old turns are tested. Complete reply goes to one TTS generator.
|
||||
|
||||
Single-call dance/nullable after_action schema and ephemeral owner/connection/turn/
|
||||
TTL ticket implemented. Only reviewed pack capability enables dance. Pre-reply
|
||||
drain releases action.plan; action drops uplink without VAD/ASR buffering. Completed
|
||||
requires started/mic stopped, video ended, audio stopped, restored idle and reviewed
|
||||
duration. Cancel/disconnect/expiry/new turn cannot revive a plan. Followup gets a
|
||||
new speech turn, zero LLM requests, one TTS; only drained followup enters history.
|
||||
Adjacent spoken assistant rows merge in provider context to preserve role ordering.
|
||||
|
||||
Android implements capture cleanup acknowledgement, action state/port, settings
|
||||
cancel, background cancellation, no-repeat variants, stale callbacks/frames fences,
|
||||
and expression preload callback separate from displayed expression. V2 metadata
|
||||
parser and visual selector bind each own body-mouth SHA/97 PTS and slight-only
|
||||
visual intensity, requiring complete fallback packages and reviewed bridge graph.
|
||||
See [asset contract](AVATAR_PACK_V2_CONTRACT.md).
|
||||
|
||||
Pending: asset owner's mouth amplitude choice, happy/sad TALK packages and their
|
||||
own mouths/bridges, Pi exact manifest review, idle variants, two real music dances,
|
||||
asset file/decode import gate and actual v2 bridge/media renderer integration.
|
||||
No new asset is admitted in this APK; default action capability remains absent.
|
||||
Existing neutral runtime04 bytes are preserved. No naturalness approval is inferred
|
||||
from hashes, tests or fixtures. Real device/GPU/music tail/≤1s perception: **not_run**.
|
||||
|
||||
Validation: full nine client JVM entry points + expression/UI source contracts;
|
||||
production parser on actual runtime04 97×5 metadata; 40 offline EGL/GLES pixel cases.
|
||||
95 gateway tests pass in remote staging, including existing Silero; local archive
|
||||
also passes with that excluded-model test skipped. Android assemble and device-test
|
||||
Kotlin compilation pass; instrumentation was not executed on a phone.
|
||||
|
||||
Four fixed public local Qwen probes, max_tokens160, all SSE DONE/finish_reason stop:
|
||||
|
||||
| Case | Expression | Action | Header prepare / complete ms |
|
||||
|---|---|---|---|
|
||||
| fact | neutral0 | none | 747 / 1022 |
|
||||
| dance fixture capability | happy1 | dance + valid after | 939 / 2436 |
|
||||
| sympathy | sad1 | none | 722 / 2217 |
|
||||
| negation | neutral0 | none | 861 / 1405 |
|
||||
|
||||
These observations validate nested nullable/ordered decoding on the exact local
|
||||
Qwen tuple. Preparation is speculative preload; complete parsed expression remains
|
||||
authoritative. No cloud provider probes or retries were made. Server read-only
|
||||
clock precheck: Asia/Shanghai, NTP=yes, NTPSynchronized=yes; no system changes.
|
||||
|
||||
APK: `0.7.0-stage-dev`, code16, arm64, min26/target34, same debug certificate
|
||||
`b9608336bc1ed1de3269bb4594f9fe718daaa5439511c5187aa385d2b799dcf1`.
|
||||
[Download stage candidate](http://192.168.31.124:8080/lan-voice-v070-stage-candidate-code16-arm64-debug.apk)
|
||||
(HTTP bytes verified), SHA256:
|
||||
`687c350ec64d693dd8a0bc6e8f1e249816842631119f17a4cbdd38b0cb1e7336`.
|
||||
Previous code15 retained, SHA256
|
||||
`a4a7a4f86f2e0582e41dda65b0e5e1870d61ad1876780891598ee0519e833083`.
|
||||
|
||||
Detailed numeric evidence (ignored, no raw replies/keys/user audio/face reports):
|
||||
`logs/action-emotion/{schema-probe.json,delivery.json,shader-golden/}`, client
|
||||
`logs/avatar-safe-061/`, gateway `logs/voice-investigation/gateway-emotion-staged.json`.
|
||||
Protected live deployment and public synthetic voice result will be recorded after
|
||||
their actual execution; no model or unrelated service restart is authorized here.
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user