English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

Designing an Audio Content Platform on Google's A2A (Agent2Agent) Protocol

Forum topic · ✨步子哥 · 2026-04-23

Summary

This article presents a comprehensive architecture for an audio content platform (live streaming and on-demand) built on Google's open Agent2Agent (A2A) protocol, which enables AI agents built on different frameworks to communicate securely and collaboratively. The author explains A2A's core concepts: the AgentCard discovery mechanism (published at /.well-known/agent.json), stateful Tasks with lifecycle states (SUBMITTED, WORKING, INPUT_REQUIRED, COMPLETED, FAILED), multimodal Messages composed of TextPart, FilePart, and DataPart components, immutable Artifacts for task outputs with streaming delivery, plus Server-Sent Events streaming and webhook-based push notifications for real-time and asynchronous updates. The proposed platform decomposes functionality into specialized cooperating agents: a live-stream monitoring orchestrator that manages real-time transcoding tasks, an on-demand processing agent coordinating transcoding, watermarking, metadata extraction, and CDN delivery, a user-facing AI assistant handling recommendations and retrieval with multi-turn dialogue via INPUT_REQUIRED states, and content moderation and copyright-detection agents acting as gatekeepers. Interface mappings cover AgentCard discovery, SendMessage/SendStreamingMessage, GetTask/ListTasks, CancelTask, and push notification configuration. The design yields a modular, extensible, loosely coupled agent ecosystem supporting both low-latency live workflows and long-running asynchronous batch processing.

Designing an Audio Content Platform on Google's A2A (Agent2Agent) Protocol

This post (originally published in Chinese on zhichai.net) lays out a full architecture for an audio content platform — covering both live streaming and on-demand audio — that uses Google's open Agent2Agent (A2A) protocol as its core communication framework.

Key points

  • Why A2A: A2A is an open standard that lets AI agents built on different frameworks and vendors communicate, discover each other's capabilities, negotiate interactions, and collaborate on tasks — without exposing internal state, memory, or tools ("black-box" cooperation). For an audio platform with many specialized agents, this replaces brittle point-to-point integrations with a unified collaboration paradigm.
  • Core A2A concepts used in the design

  • AgentCard: A JSON "business card" published at /.well-known/agent.json describing an agent's identity, skills, endpoints, and authentication requirements — enabling standardized, automatic discovery. E.g., a transcoder agent advertises skills like "mp3-transcode" and "aac-transcode".
  • Task: The basic unit of collaboration, with a unique ID and lifecycle states (SUBMITTED, WORKING, INPUT_REQUIRED, COMPLETED, FAILED), making long-running audio processing trackable and controllable.
  • Message & Part: Messages carry a sender role plus typed Parts — TextPart (text), FilePart (files by URI or inline bytes, e.g., audio clips), and DataPart (structured JSON) — so a single message can mix instructions, files, and metadata.
  • Artifact: Immutable task outputs composed of Parts; tasks may produce multiple Artifacts, and large outputs support streaming delivery with append: true / lastChunk: true (useful for delivering transcoded audio incrementally).
  • Streaming & Push Notifications: SSE-based streaming (capabilities.streaming: true, SendStreamingMessage) pushes TaskStatusUpdateEvent and TaskArtifactUpdateEvent for real-time progress; webhook-based push notifications cover long tasks and disconnected clients, with clients then pulling results via GetTask.
  • Architecture: four agent groups

    1. Live monitoring & orchestration ("audio command center"): An orchestrator agent creates live-stream transcoding tasks, subscribes to streaming updates to track progress, manages multiple synchronized streams (e.g., multi-bitrate outputs for sports events), and handles exceptions via INPUT_REQUIRED states (e.g., source interruption).

    2. On-demand processing & distribution: A coordinator agent chains transcoding, watermark embedding, metadata extraction (ID3 tags), and quality-check sub-tasks, then delivers final Artifacts to CDN/object storage. Sub-steps are pluggable — skip watermarking, or add a noise-reduction agent without touching existing components.

    3. User-facing AI assistant: Parses natural-language requests ("recommend relaxing jazz", "play last night's replay"), invokes recommendation and retrieval agents with user-profile DataParts, supports multi-turn dialogue via INPUT_REQUIRED, and translates results back into conversational replies.

    4. Content moderation & copyright protection: A moderation agent checks live segments periodically (e.g., every minute) and screens on-demand uploads; a copyright agent matches audio fingerprints against rights databases. Both support asynchronous analysis via push notifications, letting callers continue other work until results arrive.

    Interface mapping

  • AgentCard discovery: HTTP fetch of the published card; new agents become callable without code changes.
  • SendMessage / SendStreamingMessage: Starts tasks; streaming variant used for live transcoding (progress and partial audio pushed in real time), non-streaming for batch on-demand jobs.
  • GetTask / ListTasks: Final result retrieval, recovery after stream disconnection, and operator dashboards for monitoring WORKING tasks.
  • CancelTask: Emergency interruption (e.g., policy violation mid-stream), user-cancelled processing, and timeout handling.
  • Push notification config (CreateTaskPushNotificationConfig): Webhook URLs + auth for long transcodes, deferred recommendations, and coverage during brief disconnections.

Conclusion

The result is a loosely coupled agent ecosystem with strong extensibility (new capabilities = new agents + AgentCards), flexible workflow composition, both real-time and asynchronous support, and security isolation between agents. The author notes challenges — agent registry management, cross-agent transactional consistency, and increased observability/ops complexity — suggesting centralized agent directories and unified logging/tracing as mitigations.

Tags

#google-a2a#agent2agent-protocol#audio-streaming#ai-agents#architecture#live-streaming#transcoding#content-moderation

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/177618669