Skip to content

livekit-examples/gemini-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gemini Multimodal Live Playground

This project is an interactive playground that demonstrates the capabilities of Google's Gemini Multimodal Live API, allowing users to experiment with the API directly in their browser. It's built on top of LiveKit Agents.

Gemini Multimodal Live playground preview

Repository Structure

/agent

This directory contains the agent implementation in build on the LiveKit Python Agents framework.

/web

This directory houses the web frontend, built with Next.js.

Prerequisites

  • Python 3.9 or higher
  • pip (Python package installer)
  • LiveKit Cloud or self-hosted LiveKit server

Getting Started

Env Setup

  1. Copy the sample environment file: cp .env.sample .env.local
  2. Open .env.local in a text editor and enter your LiveKit credentials

Agent Setup

  1. Navigate to the /agent directory
  2. Create a virtual environment: python -m venv .venv
  3. Activate the virtual environment:
    • On macOS and Linux: source .venv/bin/activate
    • On Windows: .venv\Scripts\activate
  4. Install dependencies: pip install -r requirements.txt
  5. Run the agent in development mode: python main.py dev

Web Frontend Setup

  1. Navigate to the /web directory
  2. Install dependencies: pnpm install
  3. Run the development server: pnpm dev
  4. Open http://localhost:3000 in your browser

Deployment

The agent can be deployed in a variety of ways: Deployment & Scaling Guide

The web frontend can be deployed using your preferred Next.js hosting solution, such as Vercel.

Troubleshooting

Ensure the following:

  • Both web and agent are running
  • Environment variables are set up correctly
  • Correct versions of Python and pnpm are installed

Additional Resources

For more information or support, please refer to LiveKit docs.

License

Apache 2.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •