Skip to content

Frontend client for a real-time AI voice assistant, built with React. Uses the Media Recorder API to stream user audio to the backend via WebSocket's, and plays back streamed TTS responses with minimal latency. Designed for conversational UX, it supports multilingual interaction and real-time audio feedback.

Notifications You must be signed in to change notification settings

lokesh9899/Voice-Assistant-Frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stream-Voice-AI Frontend

Description A React application that captures microphone input, streams audio to the backend for transcription and LLM processing, and displays both the user's spoken text and the AI-generated response in real time.

Prerequisites

  • Node.js (>=16.x)
  • npm or Yarn

Installation

  1. Clone the repository:
    git clone <repo-url>
  2. Navigate to the frontend directory:
    cd streaming-voice/frontend
  3. Install dependencies:
    npm install
    # or
    yarn install

Environment Variables

Create a .env.local file in the frontend directory with:

NEXT_PUBLIC_BACKEND_URL=http://localhost:8000

Development

Start the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 in your browser.

Building for Production

npm run build
# or
yarn build

Project Structure

frontend/
├── public/            # Static assets
├── src/
│   ├── components/    # Reusable React components
│   ├── pages/         # Next.js pages
│   ├── styles/        # CSS/SCSS files
│   └── utils/         # Helper functions and hooks
├── .env.local         # Environment variables
└── package.json       # Scripts & dependencies

Scripts

  • npm run dev — Start development server
  • npm run build — Build for production
  • npm run start — Start production server

Deployment

Deployed to Vercel.


About

Frontend client for a real-time AI voice assistant, built with React. Uses the Media Recorder API to stream user audio to the backend via WebSocket's, and plays back streamed TTS responses with minimal latency. Designed for conversational UX, it supports multilingual interaction and real-time audio feedback.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published