The guides explain how clients use the OneSay Control API, Task voice, Realtime RTC, and the Room, Source, SignalStream, Task and Artifact resources. When a guide and the generated reference differ, follow the reference. Neither the JavaScript SDK nor the ESP32 SDK is published to a package registry yet.
Quickstarts
- JavaScript Quickstart: Task voice (audio you supply in, a Task result out, over the OneSay Realtime WebSocket) and Realtime RTC (audio publications, subscriptions and explicit Agents) with the package.
- ESP32 Quickstart: Task voice from an ESP-IDF application and the Realtime RTC component. It covers building and flashing the application; provisioning a board's Device credentials is not covered.
- Multi-party voice Room: three or four people in one voice Room from the browser, step by step with the JavaScript SDK, and the current preview limits.
- AI Agent Quickstart: talk with an AI voice Agent on OneSay Cloud's Voice call test page in a few minutes, then the same conversation in code with the JavaScript SDK, its limits and the common errors.
- Voice widget (Not open yet): put your AI Agent on your own website with one line of code: create and publish a widget, paste its snippet, allow it in your security headers, and what a visitor's call costs.
- Talk to an AI Agent on an ESP32-S3-BOX-3: the reference board as the Agent's microphone and speaker, step by step, with what has been verified.
- How an AI Agent talks through an ESP32 board: who does what in a call, and why.
- Start an AI Agent call from an ESP32 board: the board starts the call itself under its owner's standing Delegation: the one request, the 202, the refusals and what a call costs.
- Device tools (Not open yet): let the Agent use the board during a call (speaker volume, alarms) and answer from cloud tools (weather, music): declaring methods, handlers, how OneSay authorizes each request, and what a failure looks like. Preview.
- Bringing up your own board: the settings a voice call needed on the reference board, and why.
- OneSay Platform overview: what each service is for, what state it is in, and what is not there yet.
- Your first voice task on an ESP32 board: speech from a board to text, step by step.
SDK reference
- API Reference: every Control API operation with its request and response fields, examples and errors.
- JavaScript SDK Reference: environments, Task and RTC entry points, session states and declared capabilities.
- ESP32 SDK Reference: the component, Task and RTC entry points, and declared capabilities with their limitations.
- SDK Capability and Compatibility: the support matrix of both SDKs, unsupported and not exposed entries, the RTC lifecycle, Task recovery, limits and privacy.
- Canonical Reference: the public API operations, events, Grants and errors.
AI clients and diagnostics
- MCP Guide: the OneSay MCP server for AI clients, its sign-in, tools, resources and prompts.
- Device Diagnostics: a Device's state and the developer-safe logs of its Project Environment.
Security and identity
- Credential Safety: browser, server and device boundaries.
- Authentication: people sign in with Authorization Code and PKCE, servers use an environment-bound API key or Service Principal token, and devices use their own per-device credential.
- API Keys: the prefix shows where a key belongs (
osp_test_for a test Project Environment,osp_live_for a live one); it is a hint, not a permission. A key is shown once, and its revocation is checked on every request. - Device Provisioning: a five-minute, single-use provisioning code, then a per-device secret that the device exchanges for short-lived access tokens. Realtime uses a separate 60-second, one-time connection ticket.
- Merchant Webhooks: the signed paid-order notice OneSay sends to a merchant's endpoint;
verify it with a Standard Webhooks library, de-duplicate by
webhook-id, rotate the signing secret. - Authorization: the server decides the Project and Environment of every resource. Grants are explicit, a deny always wins, and credential scopes can narrow Grants but never widen them.