# Build Streaming Apps with Gemini Live API

Live voice applications must handle media formats, interruptions, and connection resets. Use SDK examples and migration checklists to configure Gemini Live sessions and handle these events.

## Install

```bash
npx skillstore add google-gemini/gemini-live-api-dev
```

## Metadata

- Status: approved
- Slug: google-gemini-gemini-live-api-dev
- Skillstore revision: r1
- Version status: missing
- Tree hash: 8717ee4089afd8414769dc221f7379d413f3914a37f855807388c9628575cb1b
- Author: google-gemini
- GitHub username: google-gemini
- Repository: https://github.com/google-gemini/gemini-skills/tree/c4d0c62c1240e08a90546186bf320600ab6a039a/skills/gemini-live-api-dev
- Ref: 5a685fd3b2304f9e4cbf5164d3ac3186cd35324e
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands, network, env\_access
- Quality score: 61
- Public page: https://skillstore.pages.dev/skills/google-gemini-gemini-live-api-dev
- Manifest: https://skillstore.pages.dev/api/skills/google-gemini-gemini-live-api-dev/manifest

## Capabilities

- Shows how to open Live sessions and send text, PCM audio, and JPEG frames with the Python and JavaScript SDKs.
- Explains how to handle voice activity, speech boundaries, interruptions, and events that carry both audio and transcript data.
- Shows how to configure streaming transcription with interim and final results and speech translation with a target language.
- Explains when to use context compression, session resumption, and ephemeral tokens for browser clients.
- Provides migration checklists for legacy models and examples of non-blocking tool calls and status tracking for Extended Thinking.

## Use Cases

- Prototype a Voice Interface: Connect a Python client, send sample audio, and stop playback when the user interrupts.
- Add Live Captions: Show interim speech results while a speaker talks, then replace them with finalized transcript text.
- Plan a Legacy Live Upgrade: Compare the target model with your existing configuration, then test tool call behavior and session state changes before rollout.

## Prompt Templates

### Start a Python Session

```
Show how to open a Python Live session and send one text message. Use a placeholder for authentication and explain the response modality.
```

### Display Live Captions

```
Outline a JavaScript transcription client that shows interim results and replaces them with final results. Explain when to send a stream-end signal.
```

### Design a Browser Voice Client

```
Design a browser voice client that uses ephemeral tokens and handles interrupted playback. Describe how it should recover from a connection reset.
```

### Migrate to Extended Thinking

```
Draft a migration checklist from Gemini 3.1 Live to Gemini 3.8 Live Extended Thinking. Cover thinking level, non-blocking tools, and idle detection.
```

## Limitations

- Examples require a compatible SDK, network access, and Gemini credentials for a live connection.
- The examples do not provide a complete application for microphone capture, audio playback, or browser token issuance.
- Each session selects one response modality. Audio response sessions can provide text through transcription.
- The direct Live API uses WebSockets. WebRTC requires a separate integration.

## Best Practices

- Use ephemeral tokens in browser clients and keep long-lived API keys on the server.
- Test interruption handling, event parsing, and session resumption before deployment.
- Use consented test media and keep raw transcripts out of production logs.

## Anti Patterns

- Embedding a long-lived API key in browser code.
- Assuming each server event contains only one type of content.
- Treating turn completion as the only sign that Extended Thinking is idle.

## Security Audit

- Audited at: 2026-11-20T16:36:28.151\+00:00
- Summary: The 104 static alerts match Markdown, documented SDK setup, public references, placeholder credentials, or ordinary streaming behavior. The examples can log user transcripts, and the lookup guidance treats one external documentation source as authoritative without verification. No evidence found of credential theft, host reconnaissance, or an explicit attempt to override the audit.

## Stats

- Views: 0
- Downloads: 1
- Favorites: 0
- Popularity score: 0
