@juspay/neurolink
Version:
The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002
30 lines (29 loc) • 1.45 kB
TypeScript
/**
* Avatar Module — Talking-Head / Lip-sync Integration for NeuroLink
*
* Provides avatar-generation capability across providers (D-ID, HeyGen,
* Replicate-hosted MuseTalk / SadTalker / Wav2Lip).
*
* Use `AvatarProcessor.generate(provider, options)` to dispatch to the
* registered handler for `provider`.
*
* Importing this module does NOT register any handlers as a side effect.
* Call `registerDefaultAvatarHandlers()` explicitly (or go through
* `ProviderRegistry.registerAllProviders()`, which every documented
* `NeuroLink` entry point already calls) to register every shipped avatar
* handler whose backing API key is present in `process.env`. Registration
* is idempotent and silently skipped if a provider is already registered or
* its constructor throws.
*
* @module avatar
*/
export { AVATAR_ERROR_CODES, AvatarError, AvatarProcessor, } from "../utils/avatarProcessor.js";
export { DIDAvatar, DIDAvatar as DIDAvatarHandler, } from "./providers/DIDAvatar.js";
export { HeyGenAvatar, HeyGenAvatar as HeyGenAvatarHandler, } from "./providers/HeyGenAvatar.js";
export { ReplicateAvatar, ReplicateAvatar as ReplicateAvatarHandler, } from "./providers/ReplicateAvatar.js";
/**
* Register every shipped avatar handler whose backing credentials are
* present in the environment. Safe to call multiple times — existing
* registrations are preserved.
*/
export declare function registerDefaultAvatarHandlers(): void;