当前位置: 首页 > Skill >

daily-news-caster

daily-news-caster

daily-news-caster

使用 news-aggregator-skill 获取最新新闻,格式化为 Markdown 播客脚本,并使用 tts 技能生成播客音频。

1.0.3 2026.11.26 962
获取Skill文件查看使用说明
作 者:陈宁 许可证: 更新时间:2026.11.26
本文目录收起

Daily News Caster Skill

This skill allows the agent to fetch real-time news, organize it into a conversational podcast script, and generate an audio file reading the script out loud.

Workflow Instructions

When the user asks to get the latest news and make a podcast out of it, follow these steps strictly:

Step 1: Ensure Required Skills are Present

Verify that news-aggregator-skill and tts exist in the workspace (under skills/ or .cursor/skills/). If either is missing, inform the user which skill(s) are not found and ask them to install manually before proceeding. Do NOT attempt to install skills automatically.

Step 2: Fetch the Latest News

Locate fetch_news.py from the news-aggregator-skill skill directory (e.g., skills/news-aggregator-skill/scripts/fetch_news.py). Read its SKILL.md to understand usage if needed.

Run the script to fetch real-time news. You can specify a source (e.g., hackernews, github, all) or keywords based on the user's request. Example command:

python3 skills/news-aggregator-skill/scripts/fetch_news.py --source all --limit 10 --deep

Step 3: Draft the Podcast Script (Internal Step)

Read the fetched news data and rewrite the information into a Markdown podcast script. Crucially, prioritize a dual-host (two-person) conversational format (e.g., Host A and Host B) in a dynamic Q&A style. The script should be:

  • Dual-Host Conversational yet concise: Write an engaging back-and-forth between two hosts. Host A should ask insightful, high-value questions to guide the conversation, and Host B should provide informative, concise answers. It should feel like a smart, fast-paced Q&A dialogue.
  • Avoid fluff: Do not include unnecessary fluff or overly long transitions. Keep it to the point (言简意赅) while retaining all critical information and facts.
  • Clearly Labeled Speakers: Start each line or paragraph with the speaker's name (e.g., Host A: or Host B:).
  • Clear text for speech: Avoid complex URLs, raw markdown links, or unpronounceable characters in the spoken text.

Save this script to a local file named podcast_script.md.

Example podcast_script.md Content:

**Host A:** Welcome to today's news roundup. We have some exciting tech updates today. To start things off, there's a big update from [Company Name]. What are the core implications of their new release for everyday users?

**Host B:** The main takeaway is that... [Insert concise answer and summary of News Item 1]. This completely changes how we approach [Topic].

**Host A:** That's fascinating. But does this new approach raise any security concerns, especially given recent data breaches?

**Host B:** Exactly. Experts are pointing out that... [Insert analysis or context]. 

**Host A:** Moving on to the open-source world, what's trending on GitHub today that developers should pay attention to?

**Host B:** A standout project is... [Insert concise summary of News Item 2].

**Host A:** Great insights. That's all for today's quick update. Thanks for tuning in!

Step 4: Generate the Podcast Audio Line-by-Line

To avoid sending the entire script to the API at once, you must generate the audio sentence by sentence (一人一句地生成) and then concatenate them.

Use tts.py from the local tts skill (skills/tts/scripts/tts.py). Read the tts skill's SKILL.md for full usage and backend options.

1. Generate Audio for Each Line: For each dialogue line in the script, run the speak command. Use the appropriate voice or reference audio for the respective host. If the user provided reference audio files for the two roles, use them via the --ref-audio flag (requires noiz backend and NOIZ_API_KEY). Without an API key, guest mode voices are available (see tts SKILL.md for the voice list).

python3 skills/tts/scripts/tts.py -t "Welcome to today's news roundup..." --ref-audio host_A.wav -o line_01.wav

python3 skills/tts/scripts/tts.py -t "The main takeaway is that..." --ref-audio host_B.wav -o line_02.wav

2. Concatenate the Audio Files: Create a text file (e.g., list.txt) listing all the generated audio files in order:

file 'line_01.wav'
file 'line_02.wav'

Then use ffmpeg to merge them into a single podcast audio file:

ffmpeg -f concat -safe 0 -i list.txt -c copy podcast_output.wav

Step 5: Present the Final Result

After the full audio has been generated and merged, present the results to the user. You MUST provide both pieces of content:

  • Output the fully drafted Markdown podcast script into the chat so the user can read it.
  • Provide the path to the final podcast_output.wav file so they can listen to the audio.
  • Briefly summarize the headlines that were included in the podcast.

Security & data disclosure

This skill is instruction-only — it contains no executable code itself. At runtime it orchestrates scripts from two dependency skills:

  • Scripts executed: news-aggregator-skill/scripts/fetch_news.py (fetches news from public sources) and tts/scripts/tts.py (generates speech audio). Both must be present locally before this skill runs; review their code and SKILL.md for details on their network behavior and credential requirements.
  • Credentials: This skill does not require any API keys or environment variables directly. The tts dependency may require NOIZ_API_KEY for voice-cloning features (noiz backend); without it, guest-mode voices work out of the box. See the tts skill's SKILL.md for details.
  • Network access: All network calls are made by the dependency skills, not by this skill's instructions. The news-aggregator fetches from public news sources; the tts skill contacts noiz.ai only when the noiz backend is used.
  • Files written: podcast_script.md, line_*.wav (temporary per-sentence audio), list.txt (ffmpeg concat list), podcast_output.wav (final output). All are written to the current working directory.
  • No persistent state: This skill does not write configuration files, store credentials, or modify other skills.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,036
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,020
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,019
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,016
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,014
Skill 文件
  • SKILL.md
    • Daily News Caster Skill
    • Workflow Instructions
      • Step 1: Ensure Required Skills are Present
      • Step 2: Fetch the Latest News
      • Step 3: Draft the Podcast Script (Internal Step)
      • Step 4: Generate the Podcast Audio Line-by-Line
      • Step 5: Present the Final Result
    • Security & data disclosure
  • 项目或源文件

相关 Skill

更多
每日综合新闻(基于news-aggregator-skill并发送至飞书文档) 每日综合新闻(基于news-aggregator-skill并发送至飞书文档) 每日自动生成科技、财经、热点综合新闻简报
news-aggregator news-aggregator 聚合国内外社会、科技、军事新闻,自动筛选整理要点。
News Collect News Collect 在 `skills/news-aggregator-skill` 中进行本地扫描,随后将结果规范化为本地报告合同,供收集层使用。当 Codex 需要...
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表