Skip to content
프로젝트

소개

Vanilla JS web interface for Gemini 2.0 flash-exp Multimodal API with text, audio, camera, screen inputs and audio responses and function calling

디자인 및 미디어

이 수치를 측정하는 방법

What you can do

  • Real-time chat with Gemini 2.0 Flash Multimodal Live API
  • Real-time audio responses from the model
  • Real-time audio input from the user, allowing interruptions
  • Real-time video streaming from the user's webcam

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Gemini 2.0 Flash Multimodal Live API Client

A lightweight vanilla JavaScript implementation of the Gemini 2.0 Flash Multimodal Live API client. This project provides real-time interaction with Gemini's API through text, audio, video, and screen sharing capabilities.

This is a simplified version of Google's original React implementation, created in response to this issue.

Live Demo on GitHub Pages

Live Demo

Key Features

  • Real-time chat with Gemini 2.0 Flash Multimodal Live API
  • Real-time audio responses from the model
  • Real-time audio input from the user, allowing interruptions
  • Real-time video streaming from the user's webcam
  • Real-time screen sharing from the user's screen
  • Function calling
  • Transcription of the model's audio (if Deepgram API key provided)
  • Built with vanilla JavaScript (no dependencies)
  • Mobile-friendly

Prerequisites

  • Modern web browser with WebRTC, WebSocket, and Web Audio API support
  • Google AI Studio API key
  • python -m http.server or npx http-server or Live Server extension for VS Code (to host a server for index.html)

Quick Start

  1. Get your API key from Google AI Studio

  2. Clone the repository

    git clone https://github.com/ViaAnthroposBenevolentia/gemini-2-live-api-demo.git
    
  3. Start the development server (adjust port if needed):

    cd gemini-2-live-api-demo
    python -m http.server 8000 # or npx http-server 8000 or Open with Live Server extension for VS Code
    
  4. Access the application at http://localhost:8000

  5. Open the settings at the top right, paste your API key, and click "Save"

  6. Get free API key from Deepgram and paste in the settings to get real-time transcript (Optional).

Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

License

This project is licensed under the MIT License.

관련 프로젝트 살펴보기

불러오는 중…