This is an automated archive made by the Lemmit Bot.

The original was posted on /r/selfhosted by /u/tonym128 on 2024-04-08 11:43:56.


I created a Docker image to host a Telegram Bot to do text to Speech on Voice Notes and Small Videos, which you can host yourself with minimal effort

It uses a python script to host the Telegram Bot, which uses Whisper.cpp for transcription and returns a chat message.

Setup is pretty straight forwards.

  • Create a Telegram Bot using BotFather.

  • Provide API Keys to Docker Image at Startup.

version: '3'

services:
shhhbot:
    container_name: shhhbot
    hostname: shhhbot
    restart: unless-stopped
    image: ghcr.io/tonym128/shhh-bot:main
    environment:
    - SHHH_API_KEY={BOT_TOKEN}
    - SHHH_MY_CHAT_ID={YOUR_CHAT_ID}

  • Send voice notes and receive messages.

Example Message