Commit Graph

4 Commits

Author SHA1 Message Date
Mikhail Kilin
86acdfab28 Add text-to-speech via Piper TTS
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
Send text message → Piper TTS → WAV → OGG Opus → voice reply.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 13:24:41 +03:00
Mikhail Kilin
420841ee30 Fix use-after-free: delete temp file before freeing path memory
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 17:26:07 +03:00
Mikhail Kilin
01bf41c61c Fix segfault: keep JSON body alive for parsed string refs
- Root cause: parseFromSlice returns slices pointing into the raw JSON
  body, but body was freed immediately after parsing in getUpdates
- Fix: return OwnedParsed wrapper that keeps both parsed result and
  raw body alive together
- Switch HTTP layer to curl subprocess (more reliable than std.http
  with static linking)
- Fix downloadToFile: use spawnAndWait instead of collectOutput
  (collectOutput requires both pipes)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 16:39:52 +03:00
Mikhail Kilin
819b28a672 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>
2026-02-18 15:32:04 +03:00