✦ Want a lab built just for you? ✦
Request a Lab ↗

Building a Voice-Powered Warehouse Assistant with Gemini Live

About this lab

You are a developer at SwiftStock Distribution, a mid-size logistics company operating three regional warehouses. The warehouse managers have a recurring problem: they need real-time inventory and shipment data while walking the floor, but pulling up dashboards on a laptop in the middle of a busy warehouse is not practical. Your team lead asks you to prototype a voice assistant that managers can talk to from any terminal, getting instant answers about stock levels, incoming shipments, and daily operations without touching a keyboard.

Your mission is to build this assistant using Google Gemini Live, a native audio API that replaces the traditional Speech-to-Text to LLM to Text-to-Speech chain with a single model that hears and speaks directly. You will start by building a basic voice agent that streams audio in real time, then extend it with four custom tools that query warehouse data: inventory lookup, shipment tracking, low stock alerts, and daily operations summaries. By the end, you will have a working voice assistant that a warehouse manager can talk to naturally and get spoken answers backed by real data.

Lab details

  • Level: Intermediate
  • Cloud: GCP
  • Domain: AI Engineering
  • Duration: 75 minutes

What you will learn

  • Build a real-time voice agent using Gemini Live's native audio streaming API
  • Implement async audio pipelines for concurrent mic capture, streaming, and playback
  • Add function calling tools that query warehouse inventory and shipment data
  • Handle voice interruptions and turn-taking for natural conversation flow
  • Customize agent voice and persona for a warehouse operations context

Concepts covered

  • Native Audio AI
  • Real-Time Streaming
  • Function Calling
  • Async Concurrency
  • Voice User Interfaces

Technologies used

  • Gemini Live API
  • google-genai SDK
  • PyAudio
  • Python AsyncIO
  • Gemini Function Calling

Prerequisites

  • Basic Python knowledge (functions, dictionaries, imports)
  • A Google AI Studio API key (free tier works)
  • A computer with a microphone and speakers
  • Python 3.11 or later installed

Topics

  • GCP
  • Gemini Live
  • Voice AI
  • Function Calling
  • AsyncIO
  • Real-Time
  • Gen AI