🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@pipecat-ai/daily-transport

Package Overview
Dependencies
Maintainers
6
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pipecat-ai/daily-transport

Pipecat Daily Transport Package

Source
npmnpm
Version
0.3.10
Version published
Weekly downloads
10K
25.58%
Maintainers
6
Weekly downloads
 
Created
Source

Pipecat's Real-Time Voice Inference - Daily Transport

Docs NPM Version Demo

Daily transport package for use with @pipecat-ai/client-js.

Installation

npm install \
@pipecat-ai/client-js \
@pipecat-ai/daily-transport

Overview

The DailyTransport class provides a WebRTC transport layer using Daily.co's infrastructure. It handles audio/video device management, WebRTC connections, and real-time communication between clients and bots.

Features

  • 🎥 Complete camera device management
  • 🎤 Microphone input handling
  • 🔊 Speaker output control
  • 📡 WebRTC connection management
  • 🤖 Bot participant tracking
  • 📊 Audio level monitoring
  • đź’¬ Real-time messaging

Usage

Basic Setup

import { RTVIClient } from "@pipecat-ai/client-js";
import { DailyTransport } from "@pipecat-ai/daily-transport";

const transport = new DailyTransport({
  dailyFactoryOptions: {
    // Daily.co specific configuration
  }
});

const rtviClient = new RTVIClient({
    transport,
    enableCam: false,  // Default camera off
    enableMic: true,   // Default microphone on
    callbacks: {
      // Event handlers
    },
    params: {
      baseUrl,
      endpoints
    }
    // ...
});

await rtviClient.connect();

API Reference

Constructor Options

interface DailyTransportConstructorOptions {
  dailyFactoryOptions?: DailyFactoryOptions;  // Daily.co specific configuration
}

States

The transport can be in one of these states:

  • "initializing"
  • "initialized"
  • "connecting"
  • "connected"
  • "ready"
  • "disconnecting"
  • "error"

Events

The transport implements the various RTVI event handlers. Check out the docs or samples for more info.

Error Handling

The transport includes error handling for:

  • Connection failures
  • Device errors
  • Authentication issues
  • Message transmission problems

License

BSD-2 Clause

FAQs

Package last updated on 15 Apr 2025

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