🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@memberjunction/ai-assemblyai

Package Overview
Dependencies
Maintainers
12
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@memberjunction/ai-assemblyai

MemberJunction Wrapper for AssemblyAI - Voice Agent API realtime driver

latest
Source
npmnpm
Version
5.49.0
Version published
Weekly downloads
716
-16.16%
Maintainers
12
Weekly downloads
 
Created
Source

@memberjunction/ai-assemblyai

MemberJunction provider package for AssemblyAI, currently exposing the Voice Agent API (launched April 2026) as a realtime, full-duplex, tool-calling model.

What this package provides

  • AssemblyAIRealtime — a BaseRealtimeModel driver (registered via @RegisterClass(BaseRealtimeModel, 'AssemblyAIRealtime')) for AssemblyAI's single-websocket speech-to-speech stack: Universal-3 Pro streaming ASR, server-side turn detection and barge-in, LLM reasoning, JSON-Schema tool calling, and conversational TTS.
  • AssemblyAIRealtimeSession — the IRealtimeSession implementation backing the server-bridged topology.

The matching browser-direct client driver (AssemblyAIRealtimeClient, ClassFactory key 'assemblyai') ships in @memberjunction/ai-realtime-client.

Provider characteristics

ConcernHow this provider does it
EndpointOne websocket: wss://agents.assemblyai.com/v1/ws?token=…
Session configNative per-session session.update (prompt, tools, voice, turn detection) — no server-side agent object to manage
AudioPCM16 mono 24 kHz, base64, both directions (fixed — no negotiation)
Tool callingJSON-Schema function tools; tool.call arguments arrive parsed; tool.result takes a JSON string
Tools mid-sessionMutableRegisterTools re-declares natively via session.update
Narration (RequestSpokenUpdate)Native via reply.create instructions
Context notes (SendContextNote)Emulated via the mutable system_prompt ("Background updates" section)
Typed text (client SendText)Emulated via reply.create instructions (no typed-input wire event)
Interruptionreply.done status: 'interrupted' (authoritative); the client driver also flushes on input.speech.started while output is active for snappier barge-in
Usage eventsNone — flat hourly session billing ($4.50/hr); OnUsage never fires
Client-directSupported — one-time temp token minted via GET /v1/token (Bearer API key)
Session endClose()/Disconnect() send session.end first — skipping it leaves a billable 30-second resume hold

Configuration

  • API key env alias: AI_VENDOR_API_KEY__AssemblyAIRealtime
  • RealtimeSessionParams.Config passthrough keys: voice, greeting, turn_detection (object), keyterms (string array)
  • Model / APIName plays no wire role (single endpoint, no model selection) — the metadata row uses voice-agent

Docs

  • Product: https://www.assemblyai.com/products/voice-agent-api
  • API reference: https://www.assemblyai.com/docs/voice-agents/voice-agent-api
  • Token endpoint: GET https://agents.assemblyai.com/v1/token?expires_in_seconds=…
  • Full MJ realtime architecture (topologies, co-agent model, four-provider capability matrix): guides/REALTIME_CO_AGENTS_GUIDE.md

FAQs

Package last updated on 22 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts