Turns web articles into MP3s with Phonon text-to-speech. Self-hosted, with a web UI and a Telegram bot
Files
README.md

vorleser #

Send a link to an article, get it back as spoken audio. vorleser downloads the page, extracts the article text, has it read by Phonon and encodes the result to MP3 using FFmpeg. It also connects to Telegram. Send a link to your bot via direct message and it responds with the audio file attached.

screenshot vorleser web UI

Quick start #

git clone --recurse-submodules <repo-url> vorleser && cd vorleser
cp .env.example .env   # set the Telegram token, allowed users, web password, HF token
docker compose up -d

The web UI listens on port 8080. All settings are documented in .env.example.

Notes:

  • Non-English model access. Models like gradium/phonon-40m-de are gated on Hugging Face: accept its terms once on the model page and set HF_TOKEN.
  • Keep Phonon internal. The Phonon servers have no authentication. Don't publish their ports; vorleser reaches them over the compose network.
  • Data directory owner. The container runs as uid 65532.

Development #

Building needs a C toolchain because FFmpeg is linked through cgo. The Makefile initialises the ffmpeg-statigo submodule and downloads the static library on first use.

make fmt     # gofumpt + goimports
make lint    # golangci-lint
make test
make build   # ./vorleser

With direnv, direnv allow once sets GOFLAGS=-tags=embedded for plain go commands and loads .env. Outside compose, point PHONON_DE_URL/PHONON_EN_URL at your Phonon servers, e.g. http://localhost:8880.

direnv allow
go run ./cmd/vorleser

Licence #

MIT