名称: news-summary
描述: 当用户请求新闻更新、每日简报或询问世界动态时,应使用此技能。从可信的国际 RSS 源获取新闻,并可生成语音摘要。
通过 RSS 源从可信的国际新闻机构获取并总结新闻。
# 世界新闻
curl -s "https://feeds.bbci.co.uk/news/world/rss.xml"
# 头条新闻
curl -s "https://feeds.bbci.co.uk/news/rss.xml"
# 商业新闻
curl -s "https://feeds.bbci.co.uk/news/business/rss.xml"
# 科技新闻
curl -s "https://feeds.bbci.co.uk/news/technology/rss.xml"
# 世界新闻
curl -s "https://www.reutersagency.com/feed/?best-regions=world&post_type=best"
curl -s "https://feeds.npr.org/1001/rss.xml"
curl -s "https://www.aljazeera.com/xml/rss/all.xml"
提取标题和描述:
curl -s "https://feeds.bbci.co.uk/news/world/rss.xml" | \
grep -E "<title>|<description>" | \
sed 's/<[^>]*>//g' | \
sed 's/^[ \t]*//' | \
head -30
curl -s https://api.openai.com/v1/audio/speech \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "tts-1-hd",
"input": "<news summary text>",
"voice": "onyx",
"speed": 0.95
}' \
--output /tmp/news.mp3
📰 新闻摘要 [日期]
🌍 国际新闻
- [头条新闻 1]
- [头条新闻 2]
💼 商业财经
- [头条新闻 1]
💻 科技动态
- [头条新闻 1]