paratustra / captions

Real-time captions with optional translation using Next.js.
7 stars 2 forks source link

Real-time captions

This project implements a real-time speech-to-text transcription service with optional translation capabilities using React, Next.js, Deepgram for speech recognition, and Groq for translation.

Features

Technologies Used

Setup

  1. Clone the repository
  2. Install dependencies: pnpm install
  3. Set up environment variables:
    • DEEPGRAM_API_KEY: Your Deepgram API key
    • GROQ_API_KEY: Your Groq API key
  4. Run the development server: pnpm run dev

API Routes

Usage

  1. Start the application
  2. Grant microphone access when prompted
  3. Speak into the microphone to see real-time transcription
  4. Toggle the switch to enable/disable automatic translation to English

Notes