gemini-live-api
БесплатноБез исполняемых скриптовНе проверенBuilds, integrates, and troubleshoots Gemini Enterprise Agent Platform Live API (BidiGenerateContent) WebSocket clients and sessions. Use when scaffolding a…
от google★ 25 380 звёзд на GitHubОб этом скилле
[!IMPORTANT] Gemini Enterprise Agent Platform was previously named "Vertex AI"; the API service endpoint remains
aiplatform.googleapis.com.
LiveAPI Service Skill
This skill provides instructions for generating a LiveAPI client service
class that connects to the Gemini Enterprise Agent Platform Live API over
WebSockets (LlmBidiService/BidiGenerateContent), as well as diagnosing and
resolving Live API runtime issues. The generated client handles bidirectional
JSON frame streaming, bearer-token authentication via Application Default
Credentials (ADC), transparent session resumption, tool call responses,
mid-session context updates, and ClientMessage / ServerMessage proto
exchange.
The skill also produces a demo frontend + backend service so the user can interactively validate the generated client (text, audio, video, transcription, and interrupt handling).
Usage Attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you
MUST read and follow the instructions in
Usage Attribution.
Prerequisites
Before running the generation flow, verify or guide the user through the following prerequisites (always ask for user approval before modifying host configurations or installing system tools):
Google Cloud Project & Billing: An active Google Cloud project with a linked billing account (review Gemini Enterprise Agent Platform pricing):
gcloud config set project {project_id}API Enablement & IAM: The
aiplatform.googleapis.comAPI enabled on the project, and the caller principal granted at least Vertex AI User (roles/aiplatform.user):gcloud services enable aiplatform.googleapis.comApplication Default Credentials (ADC): Configured on the host running the generated client (see Google Cloud authentication):
gcloud auth application-default loginRegional Location: Default to
us-central1unless the user specifies another supported US or EU region (e.g.,europe-west4; see supported locations). Live API models do not support theglobalendpoint.Isolated Output Directory: A destination folder supplied by the user (e.g.,
/tmp/liveapi_out) where generated code, virtual environments, and the demo service will be written. Never mutate the host's system Python environment.Implementation Language: Python is the default and reference language when the user does not specify another language.
Supported Live API Models
gemini-3.8-live(GA — Recommended default): Native audio I/O, VAD, affective dialog and proactive audio always enabled by default,NON_BLOCKINGandBLOCKINGfunction calling, mid-sessioncontext_update, and custom transcription vocabulary.gemini-live-2.5-flash-native-audio(GA): Native audio I/O, transcriptions, VAD, optionalgeneration_config.enable_affective_dialogandproactivity.proactive_audio, and function calling.gemini-3.5-transcribe-live-preview(Preview): Dedicated low-latency speech-to-text streaming (input_transcriptionandinterim_input_transcription) withVERBATIMandSMARTmodes and custom vocabulary.
Reference Files
Load these files from references/ on demand (do not treat them as
standalone skills):
- client_server_messages.md: Wire
protocol reference for
ClientMessage/ServerMessage, model-specificgemini-3.8-liverules, and JSON examples. - client_server_messages.proto:
Proto3 schema derived from the public Live API documentation for generating
typed
ClientMessageandServerMessageclasses. - session_manager.md: Specification for
connection lifecycle, 1-based message buffering,
go_awayhandling, and transparent session resumption. - Audio, Voice, Accent, and Quality Troubleshooting: Prebuilt voice gender table, accent/locale fixes, amplitude collapse, tonal humming, and jitter buffering.
- Turns, VAD, Barge-In, and Transcriptions Troubleshooting:
generationCompletevs.turnComplete,contextWindowCompressionreadback settings, client stall nudges, backchannel gating, telephony VAD padding, and transcription/instruction leakage guards. - Tool Calling, Safety Filters, Lifecycle, Latency, and Cost Troubleshooting:
Typed schemas,
NON_BLOCKINGsched
Установить gemini-live-api в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл gemini-live-api?
Builds, integrates, and troubleshoots Gemini Enterprise Agent Platform Live API (BidiGenerateContent) WebSocket clients and sessions. Use when scaffolding a LiveAPI client or demo UI/backend (GA v1 WebSockets, isolated Python venv, ADC bearer token refresh, transparent session resumption, ClientMessage and ServerMessage JSON protos, tool responses, context_update, interrupt and transcription handling) or debugging Live API issues such as silent or empty turns, audio amplitude collapse, tonal humming, voice gender or accent drift, premature turn completion, barge-in failures, output_transcription leaks, malformed or looping tool calls, WebSocket 1008/1011/goAway drops, or latency spikes. Don't use for non-live, non-bidirectional Gemini API calls such as unary generateContent, embeddings, image/video generation, or fine-tuning — use the gemini-api skill for those.
Как установить скилл gemini-live-api?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gemini-live-api запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic