跳到主要內容
AI 武林
影片進階EN11.8 萬 次觀看

Build a real-time voice AI agent with Google ADK and Gemini Live API

來源 Google Cloud Tech

看影片(在新分頁開啟原站)連到 YouTube・Google Cloud Tech

摘要

示範如何使用 Google ADK 與 Gemini Live API 建構即時語音 AI 代理。內容涵蓋從架構設計到核心元件的實作細節,解釋為何語音互動應如通話般雙向串流,並深入探討 ADK 中的 Agent、Runner 與 Session 運作機制,以及利用 LiveRequestQueue 解決雙向音訊不阻塞的技術挑戰。

This video demonstrates building a real-time voice AI agent using Google ADK and the Gemini Live API, covering architecture, core components, and the live loop mechanism to handle bidirectional audio streams without blocking.

摘要、重點與章節標題由語言模型整理,細節(誰說的、數字、先後)可能有誤;要引用請以原始內容為準。

重點

  • 將語音代理架構視為雙向通話,而非傳統的串列式處理流程。
  • 利用 LiveRequestQueue 解耦雙向音訊流,確保輸入輸出互不阻塞。
  • 區分 send_realtime 用於連續音訊與 send_content 用於完整輸入的用法。

章節

依話題轉折切分,標題由 AI 產生

  1. 00:00The agent we're building
  2. 00:25What you'll learn (three parts)
  3. 00:55Why the STT → LLM → TTS pipeline feels broken
  4. 01:23A phone call, not a walkie-talkie
  5. 01:49The architecture: browser, WebSocket, backend, Gemini Live
  6. 02:19The ADK Agent: model, personality, tools
  7. 03:00The Runner: who actually runs the live call
  8. 03:13The Session: why live voice keeps it in memory
  9. 04:10The problem: two audio streams, neither can block
  10. 04:34LiveRequestQueue: the sushi belt
  11. 05:01send_realtime: streaming mic audio
  12. 05:33Always send — even the silence
  13. 06:01send_content: discrete input, and the rule of thumb
  14. 06:30run_live: audio, captions, tool calls, interrupted
  15. 07:02Trace one sentence, end to end
  16. 07:55The in-memory session gotcha
  17. 08:20Recap: architecture, building blocks, live loop
  18. 08:54Next episode: giving the agent tools

提到的工具與公司

  • Google ADK
  • Gemini Live API
  • WebSocket
  • LiveRequestQueue
  • Runner
  • Session

適合誰看

希望開發即時語音 AI 代理或深入理解 Google ADK 架構的開發者。

摘要依據

依據
人工字幕

為什麼排在這裡

人氣
0.85
新鮮
0.75

在主題頁與搜尋結果裡,名次由相關、人氣、新鮮三個分數決定;這一頁沒有搜尋的關鍵字,所以沒有相關分數。排序怎麼算

這個來源最近的內容

Google Cloud Tech 的所有內容

摘要由 AI 根據原文產生,可能有誤;完整內容請看原站。看影片(在新分頁開啟原站)