news-summary
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseNews Summary
新闻摘要
Overview
概述
Fetch and summarize news from trusted international sources via RSS feeds.
通过RSS源从可靠的国际新闻源获取并汇总新闻。
RSS Feeds
RSS源
BBC (Primary)
BBC(主要源)
bash
undefinedbash
undefinedWorld news
全球新闻
Top stories
头条新闻
curl -s "https://feeds.bbci.co.uk/news/rss.xml"
curl -s "https://feeds.bbci.co.uk/news/rss.xml"
Business
商业新闻
Technology
科技新闻
undefinedundefinedReuters
Reuters
bash
undefinedbash
undefinedWorld news
全球新闻
undefinedundefinedNPR (US perspective)
NPR(美国视角)
bash
curl -s "https://feeds.npr.org/1001/rss.xml"bash
curl -s "https://feeds.npr.org/1001/rss.xml"Al Jazeera (Global South perspective)
Al Jazeera(全球南方视角)
bash
curl -s "https://www.aljazeera.com/xml/rss/all.xml"bash
curl -s "https://www.aljazeera.com/xml/rss/all.xml"Parse RSS
解析RSS
Extract titles and descriptions:
bash
curl -s "https://feeds.bbci.co.uk/news/world/rss.xml" | \
grep -E "<title>|<description>" | \
sed 's/<[^>]*>//g' | \
sed 's/^[ \t]*//' | \
head -30提取标题和描述:
bash
curl -s "https://feeds.bbci.co.uk/news/world/rss.xml" | \
grep -E "<title>|<description>" | \
sed 's/<[^>]*>//g' | \
sed 's/^[ \t]*//' | \
head -30Workflow
工作流程
Text summary
文本摘要
- Fetch BBC world headlines
- Optionally supplement with Reuters/NPR
- Summarize key stories
- Group by region or topic
- 获取BBC全球头条新闻
- 可选补充Reuters/NPR的新闻
- 汇总关键新闻事件
- 按地区或主题分组
Voice summary
语音摘要
- Create text summary
- Generate voice with OpenAI TTS
- Send as audio message
bash
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- 生成文本摘要
- 使用OpenAI TTS生成语音
- 以音频消息形式发送
bash
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.mp3Example Output Format
示例输出格式
📰 News Summary [date]
🌍 WORLD
- [headline 1]
- [headline 2]
💼 BUSINESS
- [headline 1]
💻 TECH
- [headline 1]📰 新闻摘要 [日期]
🌍 全球新闻
- [头条1]
- [头条2]
💼 商业新闻
- [头条1]
💻 科技新闻
- [头条1]Best Practices
最佳实践
- Keep summaries concise (5-8 top stories)
- Prioritize breaking news and major events
- For voice: ~2 minutes max
- Balance perspectives (Western + Global South)
- Cite source if asked
- 摘要保持简洁(5-8条头条新闻)
- 优先推送突发新闻和重大事件
- 语音摘要:最长约2分钟
- 平衡新闻视角(西方+全球南方)
- 若用户询问,需注明新闻来源