跳到正文
Skillpedia
智能体48k · #5445

pipecat-friday-agent

它能做什么

这个 AI 智能体就像一个反应迅速的语音助手,灵感来自《钢铁侠》电影中的 F.R.I.D.A.Y. 角色。它能听懂你说的话,用人工智能进行思考,然后开口回答,整个过程非常快。

适用场景

  • ✓当你想构建一个实时对话的语音助手时。
  • ✓当你想用 Pipecat 系统把多个 AI 工具连接起来时。
  • ✓当你想做一个带有超级英雄或战术风格的语音项目时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/pipecat-friday-agent/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/pipecat-friday-agent/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“你好 F.R.I.D.A.Y.,明天的天气预报怎么样?”

每周 5 个新技能,1 分钟读完。

工作原理

它使用一个名为 Pipecat 的程序,把麦克风、语音识别程序(比如 OpenAI 的 Whisper)、AI 大脑(谷歌的 Gemini)和语音合成程序(OpenAI TTS)连接在一起。这些环节按顺序快速完成。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Pipecat Friday Agent

Overview

This skill provides a blueprint for building F.R.I.D.A.Y. (Replacement Integrated Digital Assistant Youth), a local voice assistant inspired by the tactical AI from the Iron Man films. It uses the Pipecat framework to orchestrate a low-latency pipeline:

  • STT: OpenAI Whisper (whisper-1) or gpt-4o-transcribe
  • LLM: Google Gemini 2.5 Flash (via a compatibility shim)
  • TTS: OpenAI TTS (nova voice)
  • Transport: Local Audio (Hardware Mic/Speakers)

When to Use This Skill

  • Use when you want to build a real-time, conversational voice agent.
  • Use when working with the Pipecat framework for pipeline-based AI.
  • Use when you need to integrate multiple providers (Google and OpenAI) into a single voice loop.
  • Use when building Iron Man-themed or tactical-themed voice applications.

How It Works

Step 1: Install Dependencies

You will need the Pipecat framework and its service providers installed:

pip install pipecat-ai[openai,google,silero] python-dotenv

Step 2: Configure Environment

Create a .env file with your API keys:

OPENAI_API_KEY=your_openai_key
GOOGLE_API_KEY=your_google_key

Step 3: Run the Agent

Execute the provided Python script to start the interface:

python scripts/friday_agent.py

Core Concepts

Pipeline Architecture

The agent follows a linear pipeline: Mic -> VAD -> STT -> LLM -> TTS -> Speaker. This allows for granular control over each stage, unlike end-to-end speech-to-speech models.

Google Compatibility Shim

Since Google's Gemini API has a different message format than OpenAI's standard (which Pipecat aggregators expect), the script includes a GoogleSafeContext and GoogleSafeMessage class to bridge the gap.

Best Practices

  • ✅ Use Silero VAD: It is robust for local hardware and prevents background noise from triggering the LLM.
  • ✅ Concise Prompts: Tactical agents should give short, data-dense responses to minimize latency.
  • ✅ Sample Rate Match: OpenAI TTS outputs at 24kHz; ensure your audio_out_sample_rate matches to avoid high-pitched or slowed audio.
  • ❌ No Polite Fillers: Avoid "Hello, how can I help you today?" Instead, use "Systems nominal. Ready for commands."

Troubleshooting

  • Problem: Audio is choppy or delayed.
    • Solution: Check your OUTPUT_DEVICE index. Run a script like test_audio_output.py to find the correct hardware index for your OS.
  • Problem: "Validation error" for message format.
    • Solution: Ensure the GoogleSafeContext shim is correctly translating OpenAI-style dicts to Gemini-style schema.

Related Skills

  • @voice-agents - General principles of voice AI.
  • @agent-tool-builder - Add tools (Search, Lights, etc.) to your Friday agent.
  • @llm-architect - Optimizing the LLM layer.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
常见问题

它为什么这么快?

它的设计目标就是速度快。通过让音频处理和 AI 部分直接相连,尽量减少两者之间的延迟。

我需要 OpenAI 和谷歌的账号吗?

需要。它依赖这两家公司的服务,所以你需要 API 密钥(也就是一种专用的“密码”)才能使用。

什么是 Pipecat?

Pipecat 是一个帮助组织和连接不同 AI 工具的系统,它按顺序把各个环节串起来,就像一条数据流水线。

详情

作者的原始描述

Build a low-latency, Iron Man-inspired tactical voice assistant (F.R.I.D.A.Y.) using Pipecat, Gemini, and OpenAI.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5445
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能