Initial commit: Telegram voice/video transcription bot in Zig

Long-polling bot that accepts voice messages and video notes,
sends them to Whisper STT API, and replies with transcription text.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Mikhail Kilin
2026-02-18 15:32:04 +03:00
commit 819b28a672
9 changed files with 550 additions and 0 deletions

49
k8s/transcribator.yaml Normal file
View File

@@ -0,0 +1,49 @@
apiVersion: v1
kind: Namespace
metadata:
name: transcribator
---
apiVersion: v1
kind: Secret
metadata:
name: transcribator-secret
namespace: transcribator
type: Opaque
stringData:
TELEGRAM_BOT_TOKEN: "REPLACE_ME"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: transcribator
namespace: transcribator
spec:
replicas: 1
selector:
matchLabels:
app: transcribator
template:
metadata:
labels:
app: transcribator
spec:
containers:
- name: transcribator
image: gitea.mikhailkilin.ru/killingdruid/transcribator:latest
env:
- name: TELEGRAM_BOT_TOKEN
valueFrom:
secretKeyRef:
name: transcribator-secret
key: TELEGRAM_BOT_TOKEN
- name: WHISPER_URL
value: "http://whisper.whisper.svc:8000"
- name: WHISPER_LANGUAGE
value: "ru"
resources:
requests:
memory: "32Mi"
cpu: "10m"
limits:
memory: "128Mi"
cpu: "500m"