Repository navigation
feat(stt): add native Gnani Prisma ASR extension - #2415
ANAMASGARD wants to merge 8 commits into
Conversation
Signed-off-by: Gaurav Chaudhary <chaudharygaurav2004@gmail.com>
Signed-off-by: Gaurav Chaudhary <chaudharygaurav2004@gmail.com>
Signed-off-by: Gaurav Chaudhary <chaudharygaurav2004@gmail.com>
Findings
ASR checklist
|
Findings
ASR design review
|
Signed-off-by: Gaurav Chaudhary <chaudharygaurav2004@gmail.com>
ASR checklist
|
Signed-off-by: Gaurav Chaudhary <chaudharygaurav2004@gmail.com>
ASR checklist
|
Signed-off-by: Gaurav Chaudhary <chaudharygaurav2004@gmail.com>
ASR checklist
|
Signed-off-by: Gaurav Chaudhary <chaudharygaurav2004@gmail.com>
ASR checklist
|
Signed-off-by: Gaurav Chaudhary <chaudharygaurav2004@gmail.com>
The five-second unconfirmed drain can still discard a transcript whose first event arrives after the deadline. The PR explains the provider's missing acknowledgement and marks the finalize metadata, but the ASR baseline's final-result-before-finalize SHOULD also requires evidence for the selected bound and alternatives. Please provide that evidence and a delayed-first-result test. ASR checklist
|
Refs #2414
Changes
Add
gnani_asr_pythonfor live Prisma transcription and install it with the standard voice-assistant example. In local TMAN Designer, replace the existingsttnode with Gnani and editparams.modelto selectprisma-v2.5orprisma-v3.0. The default is v2.5 withen-IN. Both models accept a single locale, and v3.0 also supportsindic-auto. SetGNANI_API_KEYin the agent environment.The extension sends paced mono 16 kHz PCM, uses the provider's commit control when TEN requests finalization, and tracks outstanding utterances before acknowledging the request. It bounds its audio queue and reports transport failures. The provider has no transcript-drain acknowledgement. The adapter waits the full five seconds even when an earlier result has already arrived, reports outstanding speech at the deadline, and closes the turn’s connection to isolate late results. Segment offsets are estimates, and an interrupted connection can lose speech already transmitted.
Local verification
Test branch head:
9da98c856. Used the TEN development container, TMAN 0.11.48, runtime 0.11.75, and ten_ai_base 0.7.65. The minimum base with connection-state reporting is 0.7.48. TMAN also refreshed existing lock entries to match the local extension manifests and resolved runtime packages.Reproduce from
ai_agents:A new sending socket can overlap the retired turn's five-second drain. Up to two provider sessions can count against the credential's concurrent-session allowance. Each socket has independent segment tracking and timeline state; TEN receives results and finalize acknowledgements in turn order. Saturation or a prolonged outage can still exhaust the bounded audio queue.
Open review items on this commit concern bursts of sub-five-second turns under the two-session limit, retrying buffered tail audio, normal closure during handshake, and base-class finalize dispatch.
The live tests require a Gnani key. Set
GNANI_DESIGNER_GRAPHto a saved graph to exercise its STT configuration. The cloud Store listing requires maintainer publication. The parent issue also tracks the separate Timbre TTS contribution.