Voice Control

SKILL: Voice Control (Gemini Live)

Moeabdelaziz007 Updated

File contents

SKILL: Voice Control (Gemini Live)

Description

Implements a simulation of the Gemini Live bidirectional streaming protocol. It handles InputAudio events from the user and generates OutputAudio events using ADK patterns.

Architecture

Based on google.adk.models.gemini_llm_connection:

  1. Audio In: User speech is captured as chunks.
  2. Transcode: Audio is converted to text (STT) for the context window (if needed) or processed directly by multimodal models.
  3. Audio Out: The agent response is synthesized (TTS).

Capabilities

  1. process_audio_stream(stream_id):
    • Simulates connecting to a WebSocket.
    • Listens for interrupt signals.
  2. speak(text_or_ssml):
    • Synthesizes speech.
    • Supports SSML for tone/pitch control (e.g., <speak>Hello</speak>).

Usage Prompt

"Agent, activate voice mode. Listen for my command 'Deploy' and confirm verbally."

Moeabdelaziz007/Gemini-3.0-Superpowers-and-Pesona/tree/main/skills/voice_control commit 12e6891d6d

Frequently asked questions

npx skillmds@latest add moeabdelaziz007/voice-control