BlogRegister
    ONEBUDD // TECHNICAL DOCUMENTATION

    Integration manual.

    Raw API references, WebSocket specs, and implementation details for integrating sub-200ms voice compliance hooks into your stack.

    / _

    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();