ONEBUDD // TECHNICAL DOCUMENTATION
Integration manual.
Raw API references, WebSocket specs, and implementation details for integrating sub-200ms voice compliance hooks into your stack.
/ _
1. Core Logic
2. Networking
API Reference
Complete WebSocket protocol and event reference
SDK Guides
Official SDKs for JavaScript, Python, and Go
Implementation Example
TYPESCRIPT
app.ts
import { OneBuddClient } from '@onebudd/sdk';
const client = new OneBuddClient({
baseUrl: 'wss://api.onebudd.com'
});
// Handle real-time compliance interceptors
client.on('violation', (payload) => killCallOrWhisper(payload));
client.on('transcript', ({ text, isFinal }) => {
console.log(isFinal ? '[FINAL]' : '[PARTIAL]', text);
});
// Initialize socket stream
await client.startSession({ auth_token: 'sk_live_v2_xxx' });
client.streamMicrophone();