Skip to content

PyAI Omni · Realtime voice runtime

A voice that listens.
An agent that acts.

Natural conversations, responsive turn-taking and tools that do real work. Omni brings hearing, reasoning and speech together in one realtime runtime.

Your voice, your knowledge, your tools. One connection.
PyAI in motionInteractive example

APPOINTMENT BOOKING

A conversation that keeps moving.

THE CALLER
“Could I book an appointment for Thursday?”
THE AGENT

“Of course. Would morning or afternoon work better?”

Omni · speech + reasoning + tools
Now see the actual product.Console tour · sample data

Illustrative workflow; no live call.

Natural, interruptible conversations
Your knowledge and actions
Built for phone, web and app

From an idea to a conversation

Meet your new
voice workspace.

Omni powers the conversation. Agents gives you a place to configure, save and test it. See how the two come together in the actual PyAI Console.

Product tour
Actual Console UI · sample workspaceAria Natural · PyAI Speak

01 / Make it yours

Give it a job.
Then a personality.

Set its instructions, choose a voice and connect the knowledge it needs. A saved Agent keeps that setup together for your next conversation.

  • Instructions and a greeting in your own words
  • Stock voices, cloned voices and voice design
  • Knowledge bindings and tools for the task
Open the Agent builder

console.pyai.com / agents

Actual PyAI Console showing the voice agent setup and instructions with sample data
Actual Console UI, recorded with sample data.

02 / Hear it for yourself

The test is
a conversation.

Take the agent into the realtime Playground. Change a setting, try a different prompt and hear how it responds before connecting it to your application.

Explore the public Playground

PyAI / realtime Playground

Actual PyAI realtime Playground with sample agent settings ready for a test conversation
Actual Console UI · sample setup. This capture does not show a live inference session.

A live conversation

Say hello.
Eva is listening.

Try the PyAI voice agent in your browser. Ask a question, interrupt naturally and experience Omni for yourself.

Or call +1 (252) 888-7924

Starts only when you choose. Microphone access is required for a browser call. Calls may be recorded.

Talk to Eva in the browser, same Omni agent as the demo line.

Microphone options

Keep your phone close, or use earbuds with a microphone. Hold to talk keeps the mic off between presses; nearby voices may still come through while you speak.

On iPhone, during the call, open Control Center → app controls → Mic Mode → Voice Isolation, if available. See Apple’s guide (opens in a new tab)

Start a call to check the settings your browser reports.

Live voice demo, powered by Omni

03 / Put it to work

One agent.
Your kind of connection.

Use the visual builder or integrate directly. Agents stores your profile; Omni runs each realtime conversation. Start where it fits your team.

Add a voice assistant to your website

In Agents, open Website & phone. Add your exact HTTPS website origins, choose the launcher and publish. Paste the generated script into a site you can edit; visitors need no phone number.

Publish a website widget

On the phone

Connect your agent to managed telephony or bring your carrier. Omni supports native 8 kHz phone audio and conversational interruption.

Explore Telephony

In your application

Use a saved profile through the Agents API, or configure a direct Omni session with the official SDK.

Read the API workflow

From exploring to building

Make a change.
Take the code.

Choose the instructions, language and voice. The SDK example updates with your configuration, ready to use in your application.

Configure your voice agent. Take the code.

Set the conversation style, language and voice. Copy the configured example, or open Agents to build and test visually.

Describe how your agent should respond. No saved agent is created by this example.

A matching voice is selected for each language. More voices are available in the console.

wss://api.pyai.com/v1/omni · PCM16 / 24 kHz

// Server-side Node.js example. Install: npm install @pyai/sdk ws
import PyAI from "@pyai/sdk";
import WebSocket from "ws";
import { readFile, writeFile } from "node:fs/promises";
import { setTimeout as delay } from "node:timers/promises";

const configure = {
  "voice_id": "stock_amelia_en_gb",
  "persona": "You are a helpful support agent. Keep answers concise, ask one question at a time, and explain clearly when you do not know the answer.",
  "language": "en"
};

// Supply raw 24 kHz PCM16 mono audio, at most 20 seconds.
const caller = await readFile("caller.pcm");
if (!caller.length || caller.length % 2 || caller.length > 24000 * 2 * 20)
  throw new Error("Use nonempty raw 24 kHz PCM16 mono audio, at most 20 seconds.");
const pyai = new PyAI({ apiKey: process.env.PYAI_API_KEY, baseURL: "https://api.pyai.com" });
const chunks = [];
let configured = false, closed = false, failure;
const session = pyai.omni.connect({
  rate: 24000, configure, webSocket: WebSocket,
  onConfigured: (frame) => {
    if (frame.language_fallback || frame.language_active !== configure.language)
      failure = new Error("Requested language is unavailable.");
    else configured = true;
  },
  onHello: (frame) => console.log("Output audio:", frame.audio_out),
  onAudio: (chunk) => chunks.push(Buffer.from(chunk)),
  onError: () => { failure = new Error("Omni session failed."); },
  onClose: () => { closed = true; },
});
try {
  const deadline = Date.now() + 5000;
  while (!configured && !failure && !closed && Date.now() < deadline) await delay(20);
  if (!configured || failure || closed) throw failure ?? new Error("Configuration timed out.");
  const silence = Buffer.alloc(960); // 20 ms, sent by the same paced loop.
  const start = performance.now();
  for (let offset = 0; offset < caller.length + 24000 * 2 * 10; offset += 960) {
    if (failure || closed) break;
    const chunk = offset < caller.length ? caller.subarray(offset, offset + 960) : silence;
    session.sendAudio(chunk);
    await delay(Math.max(0, start + ((offset + chunk.length) / 48) - performance.now()));
  }
  if (failure) throw failure;
} finally { session.close(); }
if (!chunks.length) throw new Error("No reply audio was received.");
await writeFile("reply.pcm", Buffer.concat(chunks));
// Bounded capture only; the 10-second listening window can truncate a long reply.
// This example saves audio. In an app, clear the player queue on onBargeIn.

Server-side SDK example; supplies audio from a file. Use the Playground for a microphone conversation.

Copy the code to use these settings, or open Agents to configure and test your agent.

Omni uses its native realtime protocol. The official SDK handles the connection and audio framing. Read the integration guide ↗

A little more detail

Good questions.
Clear answers.

Check current rates and your project’s effective limits before starting sessions. Live usage can incur charges; managed telephony is billed separately.

What can Omni actually do out of the box?

Everything a phone agent needs in one model: hear the caller, reason with a fused LLM brain, call your custom tools/functions, ground answers in your knowledge base, and speak back in emotion-aware voices with natural turn-taking and barge-in. Built-in call control (transfer_to_human, send_dtmf, play_hold, collect, end_call) ships in the box, and you tune voice, persona, greeting, language, and a consent line per call via one configure frame.

Does Omni support tool / function calling?

Yes, three ways. Enable prebuilt hosted tools by name with zero setup (knowledge search, web search, weather, currency, unit conversion, math, date/time, geocoding, news). Register your own as a server tool and Omni calls your signed webhook from a network-isolated executor, which works on phone calls, since your code never has to be on the socket. Or run tools client-side in a browser app. Omni's brain fills the arguments from the conversation, calls the tool mid-call, and speaks the result, with sensible timeouts and fail-open behavior so audio never stalls. Your endpoints and secrets never touch the model. Live call control (transfer to a human, send DTMF, play hold, hang up) runs in your telephony transport today and is handled for you on managed Telephony.

How does knowledge-base grounding work?

Point Omni at your own knowledge endpoint in the configure frame. On each turn the engine fetches the relevant facts (fast and fail-open) and grounds its answer in them. The knowledge stays customer-hosted (you don't ship your data to PyAI), and retrieval is folded into the call rather than added as a separate RAG hop.

Can Omni use my own voice, with emotion?

Yes. Use any expressive stock voice, or bring your own: voice cloning enrollment and prompt-to-voice design are free. Drop the resulting voice_id into the configure frame and Omni speaks with it: emotion-aware, in the voice that fits your brand and language.

How is this different from Vapi, Retell, ElevenLabs, or Bland?

Those platforms orchestrate a pipeline (STT, VAD, turn detection, an LLM, RAG, and TTS), and you pay the latency and fragility of every hop. Omni is a single hybrid speech-to-speech model with a fused LLM brain that does all of it in one call, purpose-built for telephony.

I'm already on another provider, how hard is the switch?

REST speech calls keep their OpenAI-compatible shape. Realtime agents need a wire adapter because Omni uses a binary kind-byte protocol rather than OpenAI Realtime JSON events. Start with the native Omni protocol guide and verify audio and control framing before production.

Why does telephony / 8 kHz matter?

Phone lines carry 8 kHz narrowband audio, far less detail than studio sound. Models trained on clean wideband audio lose accuracy on real calls. Omni is built for narrowband, so it stays accurate on the lines you actually run on.

Which realtime URL should I use?

Use wss://api.pyai.com/v1/omni?session_label=<label>&format=pcm16&rate=24000. Omni uses its documented native kind-byte framing; REST transcription and speech keep their OpenAI-compatible shapes.

Your next conversation starts here

Give your idea
a voice.

Want a hand with setup? Build with AtomsAI ↗ · Optional implementation services, scoped separately.