OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Developer Tools & SDKs

attention labs

attention labs provides JavaScript and Python SDKs that stream microphone and webcam input to a hosted service and return typed events classifying speech as silent, human-directed or device-directed. Applications can use those events to gate audio before it reaches a language model.

Independent OpenViST project profile, based on linked sources.

attention labs — OpenViST project profile in AI Developer Tools & SDKs.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when a voice application needs to distinguish speech addressed to its device from nearby conversation before sending audio to a language model.

Who it is for

  • Developers building browser-based voice interfaces.
  • Developers integrating speech filtering into server or embedded applications.
  • Voice-agent teams that need to route device-directed speech separately from nearby conversation.

Documented uses

  • Classify incoming speech as silent, human-directed or device-directed.
  • Gate live audio so only device-directed speech reaches a language model.
  • Retrieve completed-utterance audio for onward processing.
Before you choose

Requirements & limits

Access to the Cloud API requires account registration and generated credentials. The hosted service is described as being for evaluation; on-device deployment is licensed per unit.

  • The service returns classifications for silent, human-directed and device-directed speech; the application decides how to route the resulting audio.
  • The documented gate should pass only device-directed class 2; errors, inconclusive predictions and socket drops should keep the gate closed.
  • The hosted SDK streams both microphone and webcam input to a managed service.
  • The browser SDK depends on getUserMedia, AudioContext, AudioWorklet, Canvas and WebSocket; the Python SDK requires Python 3.10 or later.
  • Audio uses 16 kHz mono chunks; video is sent at about four frames per second and may drop under backpressure.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Set up the JavaScript SDK to stream media and receive speech events

Connect a browser client to the hosted service and receive prediction and completed-turn events.

Before you start

  • A browser supporting getUserMedia, AudioContext, AudioWorklet, Canvas, and WebSocket.
  • An API key created in the dashboard.
  • The @attenlabs/saa-js package.

Steps

  1. Install the package with npm install @attenlabs/saa-js.

  2. Create an AttentionClient with the API key as its token; keep the key secret and load it from an environment variable rather than hardcoding it.

  3. Register prediction and turnReady listeners. Use prediction class 2 for device-directed speech; use turnReady for the completed audio clip.

  4. Call client.start() with a videoElement to begin streaming.

Expected outcome

The client streams microphone and webcam media to the hosted service and delivers typed prediction and turnReady events. The completed turn includes audio ready to forward to a language model.

Guide limitations

  • The hosted service is for evaluation; on-device deployment is licensed per unit.
  • Only class 2 should reach the language model. Keep the gate closed on socket errors, dropped connections, or inconclusive predictions.
  • Audio is streamed as 16 kHz mono in 100 ms chunks. Video is sent as JPEG frames at about 4 fps, and frames can drop under backpressure.
Source-based practical guide

Set up the Python SDK to stream media and receive speech events

Connect a Python client to the hosted service and receive prediction and completed-turn events.

Before you start

  • Python 3.10 or later.
  • An API key created in the dashboard.
  • The attenlabs-saa package; sounddevice and opencv-python are installed automatically.

Steps

  1. Install the package with pip install attenlabs-saa.

  2. Create an AttentionClient using the API key loaded from the SAA_API_KEY environment variable.

  3. Register prediction and turn-ready callbacks. Use class 2 for device-directed speech and treat other or uncertain outcomes as closed to the language model.

  4. Call client.start() to begin streaming; call client.stop() when stopping the client.

Expected outcome

The client streams media to the hosted service and invokes callbacks with typed prediction and turn-ready events. The completed turn includes audio ready to forward to a language model.

Guide limitations

  • The hosted service is for evaluation; on-device deployment is licensed per unit.
  • Only class 2 should reach the language model. Keep the gate closed on socket errors, dropped connections, or inconclusive predictions.
  • Audio is streamed as 16 kHz mono in 100 ms chunks. Video is sent as JPEG frames at about 4 fps, and frames can drop under backpressure.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
28 November 2026
Original website title
Addressee Detection for Voice AI | SAA | attention labs · Official homepage title · retained in its source language