Skip to content

triet0612/ShortNews

Repository files navigation

📰 ShortNews - AI Enhanced RSS News App with Ollama and PiperTTS

Example: ShortNews page shorts
  1. Introduction

ShortNews is created for busy people. Add your rss of choice and you can read/listen to the summary of news article.

  1. Dependencies:
  1. Features:
  • Crawl news from RSS source.
  • Use Ollama to create a summary.
  • Create audio using PiperTTS with summarized text.
  • Store summary and audio in sqlite database.
  • Add/Delete news source of choice.
  • View full article, listen to audio
  • Short news with autoplay.
  1. Language support:
  • Currently English, Vietnamese.
  1. Installation:
  • Install Ollama then:

    • Linux: run install.sh script. When finished, just run short_news.bin

    • Windows: run install.bat script. When finished, just run short_news.exe

    • A browser will be open with http://localhost:8000 for the app

  • Warning: short_news currently will reserve port 8000 (may fix in the future). Please check for system requirements of gemma:2b model before install, we are using q4_0 version.

  1. Tech-stack:
  • Backend Api is build using net/http std lib in golang, using gofeed library for crawling rss feeds, goquery for crawling article data and go-sqlite3 to for sqlite database.
  • Front-end in Svelte and built as a single page app.
  • Langchain + Ollama for calling gemma:2b model
  • Using PiperTTS binary and cli execution to get audio.