
Product
Introducing Custom Tabs for Org Alerts
Create and share saved alert views with custom tabs on the org alerts page, making it easier for teams to return to consistent, named filter sets.
ultravox-client
Advanced tools
This is the web client library for Ultravox.
Written in TypeScript, this library allows you to easily integrate Ultravox's real-time, speech-to-speech AI into web applications.
import { UltravoxSession } from 'ultravox-client';
const session = new UltravoxSession();
session.joinCall('wss://your-call-join-url');
session.leaveCall();
Note: Join URL's are created using the Ultravox API. See the docs for more info.
If we continue with the quick start code above, we can add event listeners for two events:
session.addEventListener('status', (event) => {
console.log('Session status changed: ', session.status);
});
session.addEventListener('transcripts', (event) => {
console.log('Transcripts updated: ', session.transcripts);
});
The session status is based on the UltravoxSessionStatus enum and can be one of the following:
| state | description |
|---|---|
| disconnected | The session is not connected and not attempting to connect. This is the initial state. |
| disconnecting | The client is disconnecting from the session. |
| connecting | The client is attempting to connect to the session. |
| idle | The client is connected to the session and the server is warming up. |
| listening | The client is connected and the server is listening for voice input. |
| thinking | The client is connected and the server is considering its response. The user can still interrupt. |
| speaking | The client is connected and the server is playing response audio. The user can interrupt as needed. |
Transcripts are an array of transcript objects. Each transcript has the following properties:
| property | type | definition |
|---|---|---|
| text | string | Text transcript of the speech from the end user or the agent. |
| isFinal | boolean | True if the transcript represents a complete utterance. False if it is a fragment of an utterance that is still underway. |
| speaker | Role | Either "user" or "agent". Denotes who was speaking. |
| medium | Medium | Either "voice" or "text". Denotes how the message was sent. |
This repo includes a basic example application that can be used with the SDK. The example application requires running a local web server:
pnpm serve-example
Then navigate your browser to http://localhost:8080/example/ and use the example.
If build fails because it cannot find './version.js', run the following:
pnpm publish --dry-run --git-checks=false
FAQs
This is the web client library for [Ultravox](https://ultravox.ai).
The npm package ultravox-client receives a total of 2,695 weekly downloads. As such, ultravox-client popularity was classified as popular.
We found that ultravox-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

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.

Product
Create and share saved alert views with custom tabs on the org alerts page, making it easier for teams to return to consistent, named filter sets.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.