General Introduction
The Hacker News Chinese Podcast project is an innovative AI-based platform designed to automatically crawl popular articles on Hacker News every day and generate Chinese summaries and podcast content via AI. Developed by ccbikai, the project leverages an advanced technology stack, including Next.js, Cloudflare Workers, Edge TTS, and the OpenAI API, to enable efficient content generation and podcasting. Users can listen to daily updates and get the latest tech news and reviews via the web or podcast app.
Function List
- Automatically Crawl Hacker News Daily Top Articles
- Use AI intelligence to summarize article content and comments
- Generate Chinese broadcasts via Edge TTS
- Web and Podcast App listening support
- Automatic Daily Updates
- Provides article summaries and full broadcast text
Using Help
Installation process
- Installation of dependencies: In a local development environment, use the
pnpm install
command installs the dependencies required by the project. - Configuring Environment Variables: Create the
.dev.vars
file and configure the following environment variables:
NEXTJS_ENV=development
NEXT_STATIC_HOST=http://localhost:3000/static
OPENAI_API_KEY=your_api_key
OPENAI_BASE_URL=https://api.openai.com/v1
OPENAI_MODEL=gpt-4
AUDIO_VOICE_ID=zh-CN-XiaoxiaoNeural
- Starting the Development Server: Use
pnpm dev:workflow
command to start a development workflow, or use thepnpm dev
command starts the Web Page Development Server.
Usage Process
- Grab popular articles: The project automatically crawls the daily top articles on Hacker News at regular intervals.
- Generate Chinese summaries: Use OpenAI API to intelligently summarize the content of the crawled articles and generate Chinese summaries and broadcast scripts.
- Generate audio broadcasts: Converts the generated Chinese script into an audio file using Edge TTS technology.
- Storage and distribution: Stores the generated audio files in Cloudflare R2 and KV and provides access to them via RSS feeds and web pages.
- Listening content: Users can listen to daily updates and get the latest tech news and reviews via the web or podcast app.