Skip to main content
Zunn
Get Started
MODULE 73 // DEVELOPER API & SDKS/DEVELOPER-FIRST INFRASTRUCTURE

Integrate World-Class Voice AI with 10 Lines of Code.

Official SDKs for Python, Node.js, and Next.js. Bi-directional WebSockets for real-time streaming, comprehensive webhooks, and predictable per-character pricing.

[Target Architectural Benchmark: Verified against live acoustic checkpoints and low-latency WebSockets.]
MODULE 73 // DEVELOPER VOICE API & WEBSOCKETS/DEVELOPER-FIRST INFRASTRUCTURE

Integrate World-Class Voice AI with 10 Lines of Code.

Official SDKs for Python, Node.js, and Next.js. Bi-directional WebSockets for real-time streaming, comprehensive webhooks, and predictable per-character pricing.

The Systems Complexity

Audio Infrastructure is Hard, Fragile, and High Latency

Connecting audio codecs, buffer underruns, WebRTC handshakes, and phone trunking requires specialized systems engineering. Sono packages state-of-the-art acoustic models into idiomatic developer SDKs that just work.

$pnpm add @zunn/sono-sdk
import { SonoClient } from "@zunn/sono-sdk";

const sono = new SonoClient({ apiKey: process.env.SONO_API_KEY });

// Stream generative speech with real-time audio playback
const audioStream = await sono.textToSpeech.stream({
  voiceId: "farhan-conversational-bn",
  text: "স্বাগতম! যুন সোনোর এপিআই ব্যবহার করে অ্যাপ্লিকেশনে যোগ করুন বাস্তবসম্মত ভয়েস।",
  outputFormat: "mp3_44100_128",
  voiceSettings: { stability: 0.75, similarityBoost: 0.85 }
});

audioStream.pipe(responseStream);
200 OKContent-Type: audio/mpeg
Latency: 182msBilled: 78 chars

Developer Infrastructure Specifications

Bi-Directional WebSocket ProtocolFULL-DUPLEX

Stream raw PCM audio frames over persistent WebSockets, eliminating HTTP handshake latency for live voice agents.

Operational Ref: Persistent Bi-Directional WebSocket
Official Native SDKsSDK SUPPORT

Type-safe client libraries for TypeScript/Node.js, Python (uv-compatible), and Go with built-in retry and streaming helpers.

Operational Ref: npm @zunn/sono-sdk & pip zunn-sono
Resilient Webhooks & Batch JobsASYNC PIPELINE

Automate high-volume audiobook conversion or transcription pipelines with HMAC-signed webhooks upon completion.

Operational Ref: HMAC-SHA256 Webhook Signatures
Granular Usage TelemetryTRANSPARENCY

Track character counts and streaming minutes in real time. Set budget hard limits to ensure total cost predictability.

Operational Ref: Real-Time Quota Telemetry
DEVELOPER QUICKSTART

Ten Lines of Code from Zero to Audio Stream

From terminal package install to streaming audio bytes in your application.

01

Install the Official SDK

Run `pnpm add @zunn/sono-sdk` or `pip install zunn-sono` in your existing terminal project.

TypeScript & Python SDKs
02

Initialize Client with API Key

Authenticate with your scoped developer API key using secure environment variables.

Zero-Leaked Keys
03

Dispatch Streaming Request

Send text with voice ID and prosody settings. Receive a readable binary audio stream immediately.

Sub-180ms First Chunk
04

Pipe Directly to Speakers or WebRTC

Stream output chunks directly into audio elements, telephone SIP bridges, or disk storage.

Native Buffer Streaming
Ready to Stream in Production?Get instant API keys with 10,000 free monthly characters