Skip to content

This is a simple Next.js application for chatting with the Google Gemeni LLM with responses read aloud with the Speech Synthesis TTS JS library.

Notifications You must be signed in to change notification settings

scottgriffinm/google-gemini-voice-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Gemini Voice Chat (Next.js)

This is a simple Next.js application that allows users to voice chat with Google Gemeni via its public API.

Chat with Gemini

Getting Started

  1. Clone the repository.
  2. Install the dependencies with npm install. (you must have Node.js version >=18 installed)
  3. Register your Google Gemini API key and add it to .env.local i.e. API_KEY=<api_key_here>.
  4. Run the development server with npm run dev.
  5. Open http://localhost:3000 in your browser.

API Route

The API route is located at pages/api/chat.js. It handles communication with the Google Gemini API.

Frontend

The chat interface is implemented in pages/index.js. It allows users to send messages and display responses from the Gemini API.

Deployment

To deploy, build the application with npm run build and then start the server with npm start.

About

This is a simple Next.js application for chatting with the Google Gemeni LLM with responses read aloud with the Speech Synthesis TTS JS library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published