Simple SDK with simulation, LLM integration, and real-time conversational workflows. From prototyping to production — sharyx-voice-agent gives you full control.
import { createAgent } from 'sharyx-voice-agent';
const agent = createAgent({
llm: 'openai',
voice: 'natural',
simulation: true
});
agent.on('message', (reply) => {
console.log(`🤖 agent: ${reply}`);
});
agent.say('Hello, how can I help?');
Watch how easy it is to build and deploy your first AI voice agent in real-time.
The robust VoiceAgent class handles real-time conversation, streaming, and custom event hooks with ease.
Test your voice flows instantly without hardware. Perfect for rapid prototyping and CI/CD pipelines.
Direct integration with OpenAI, Anthropic, or local models. Includes built-in prompt & memory management.
Scaffold full project structures in seconds with npx create-sharyx-agent and pre-built
templates.
Define complex conversational paths and fallbacks. Stream transcripts in real-time to any interface.
Clean exports, TypeScript definitions, and MIT licensed. Built for developers by developers.
npm install sharyx-voice-agent
Or use the scaffolding CLI to kickstart your agent project:
npx create-sharyx-agent my-voice-agent
Scaffolding CLI — the "magic wand" that generates a pre-configured folder with templates. Choose between TypeScript / JavaScript, sample voice workflows, and live reload simulation.
npx create-sharyx-agent voice-app
cd voice-app
npm run dev
Full control over voice sessions, events, LLM hooks, and simulation. Built for real-time conversation and production scalability.
import { VoiceAgent } from 'sharyx-voice-agent';
const agent = new VoiceAgent({ llmConfig: {...} });
agent.startSession();
The GitHub repo contains two main packages, both MIT licensed and published to NPM.
git clone https://github.com/sharyx-repo/sharyx-voice-agent.git
cd sharyx-voice-agent/sharyx-voice-agent && npm install && npm run build
cd ../create-sharyx-agent && npm install && npm run build
The SDK includes a full simulation environment to test conversational flows without any hardware — ideal for debugging and integration tests.
agent.enableSimulation({ latency: 200, responses: 'mock' })