Skip to content

deepgram-starters/node-live-transcription

Node Live Transcription Starter

Live speech-to-text transcription demo using Deepgram's Listen API with Node.js backend and web frontend.

Sign-up to Deepgram

Before you start, it's essential to generate a Deepgram API key to use in this project. Sign-up now for Deepgram and create an API key.

Prerequisites

  • Deepgram API Key (sign up for free)
  • Node.js 24 and pnpm 10+

Note: This project uses strict supply chain security measures. npm and yarn will NOT work. See SECURITY.md for details.

Quickstart

Follow these steps to get started with this starter application.

  1. Clone the repository

Go to GitHub and clone the repository.

  1. Install dependencies

Install the project dependencies:

# Option 1: Use the helper script (recommended)
pnpm run install:all

# Option 2: Manual two-step install
pnpm install
cd frontend && pnpm install && cd ..

Note: Due to security settings (ignore-scripts=true), frontend dependencies must be installed separately. The install:all script handles both steps.

  1. Set your API key

Create a .env file:

DEEPGRAM_API_KEY=your_api_key_here
  1. Run the app

Development mode (with hot reload):

pnpm dev

Production mode (build and serve)

# Build the frontend
pnpm build

# Start the production server
pnpm start

🌐 Open the App

http://localhost:3000

How It Works

This application:

  1. Accepts a live audio stream URL via WebSocket connection
  2. Fetches the audio stream from the provided URL
  3. Sends binary audio data to Deepgram's live Speech-to-Text API
  4. Returns real-time transcription results to the client

Getting Help

Contributing

See our Contributing Guidelines to learn about contributing to this project.

Code of Conduct

This project follows the Deepgram Code of Conduct.

Security

For security policy and procedures, see our Security Policy.

License

MIT - See LICENSE

About

Get started using Deepgram's Live Transcription with this Node demo app

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •