JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3242
  • Score
    100M100P100Q120958F
  • License MIT

Official Soniox SDK for client-side applications

Package Exports

  • @soniox/client

Readme

@soniox/client

Official Soniox Web SDK for client-side applications.

Full Web SDK Documentation

Installation

npm install @soniox/client

Quick Start

import { SonioxClient } from '@soniox/client';

// Create a client and fetch temporary API key from your backend
const client = new SonioxClient({
  api_key: async () => {
    const res = await fetch('/api/get-temporary-key', { method: 'POST' });
    const { api_key } = await res.json();
    return api_key;
  },
});

For the full documentation please go to our docs: Full Web SDK Documentation