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.
- Node.js (>=16.x)
- npm or Yarn
- Clone the repository:
git clone <repo-url>
- Navigate to the frontend directory:
cd streaming-voice/frontend - Install dependencies:
npm install # or yarn install
Create a .env.local file in the frontend directory with:
NEXT_PUBLIC_BACKEND_URL=http://localhost:8000Start the development server:
npm run dev
# or
yarn devOpen http://localhost:3000 in your browser.
npm run build
# or
yarn buildfrontend/
├── 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
npm run dev— Start development servernpm run build— Build for productionnpm run start— Start production server
Deployed to Vercel.