Skip to content

docs(voice): document the voice module end to end - #403

Draft
abrahams-wix wants to merge 4 commits into
mainfrom
docs-sdk-voice-module
Draft

abrahams-wix wants to merge 4 commits into
mainfrom
docs-sdk-voice-module

Conversation

@abrahams-wix

@abrahams-wix abrahams-wix commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

What

Rewrites the JSDoc for the voice module (voice.types.ts) so a developer new to WebRTC, SDP, and MCP can implement live voice end to end.

  • Module intro, How a voice session works (components, sequence diagram, numbered steps), Managing audio from a frontend client (with an example), Configure a voice agent, Limits, and Authentication modes.
  • createSession() and endSession(): all @throws codes, examples that check the current user and release the billed session, and field limits on every option.
  • mcpProfileId links to the MCP config reference and says a wrong ID doesn't raise an error.

Paired PR

This change reaches the public docs only when both PRs merge: https://github.com/base44-dev/mintlify-docs/pull/3550. The mintlify-docs PR holds the regenerated reference page and the hand-written base44/mcp/config.json documentation.

Verified

  • tsc --noEmit and voice.test.ts (16 of 16) pass.
  • Limits and error codes checked against apper origin/main.

Open questions for the backend team

  • Whether the voice module is beta or alpha.
  • Whether the rate limit (60 session creates per minute) is per app or per user.
  • Whether the oai-events data channel name is required.
  • How a developer gets an MCP profile ID without the builder AI.
  • VoiceSession.environment documents deployed, but the TypeScript type is still "live" | "draft".

🤖 Generated with Claude Code

abrahams-wix and others added 4 commits December 1, 2026 09:54
…nd limits

Rewrite the voice module JSDoc so a developer can set up a live voice
session end to end.

- Explain the three components (frontend client, backend function, Base44)
  and what to set up in each.
- Add the session flow as a diagram and a numbered list of the methods
  each step calls.
- Add a "Set up the frontend client" section with an example.
- Add a Limits table, field limits, and the missing error codes.
- Define MCP profile, SDP, and the `deployed` environment value, and link
  the MCP profile to base44/mcp/config.json.
- Add a caller check to the backend examples and a note on credits.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- Put the frontend client bullets in the order the client does them, and
  reorder the example to match.
- Say that the frontend client streams audio and receives events.
- Fix the link to the renamed frontend client section.
- Expand ICE at its first mention, name the noun in unclear pronouns, and
  make the bold labels consistent.
- Fix typos in step 1 and in the microphone permission sentence.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…nt sentence

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

🚀 Package Preview Available!


Install this PR's preview build with npm:

npm i @base44-preview/sdk@0.8.64-pr.403.a7fb298

Prefer not to change any import paths? Install using npm alias so your code still imports @base44/sdk:

npm i "@base44/sdk@npm:@base44-preview/sdk@0.8.64-pr.403.a7fb298"

Or add it to your package.json dependencies:

{
  "dependencies": {
    "@base44/sdk": "npm:@base44-preview/sdk@0.8.64-pr.403.a7fb298"
  }
}

Preview published to npm registry — try new features instantly!

@github-actions github-actions Bot added the docs-draft PR has auto-drafted documentation suggestions label Dec 1, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-draft PR has auto-drafted documentation suggestions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant