Gemini 2.0 flash-exp 的 Vanilla JS Web 界面 具有文本、音频、摄像头、屏幕输入和音频响应以及函数调用的多模式 API
Gemini 2.0 flash-exp 的 Vanilla JS Web 界面 具有文本、音频、摄像头、屏幕输入和音频响应以及函数调用的多模式 API
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.
python -m http.server or npx http-server or Live Server extension for VS Code (to host a server for index.html)Get your API key from Google AI Studio
Clone the repository
git clone https://github.com/ViaAnthroposBenevolentia/gemini-2-live-api-demo.gitStart 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 CodeAccess the application at http://localhost:8000
Open the settings at the top right, paste your API key, and click "Save"
Get free API key from Deepgram and paste in the settings to get real-time transcript (Optional).
Contributions are welcome! Please feel free to submit issues and pull requests.
This project is licensed under the MIT License.
暂无开放 Issues,或尚未同步最近议题。