feat: persist voice samples to disk, generate VTT, cleanup after analysis

This commit is contained in:
2026-04-16 19:50:38 +02:00
parent b4026235ab
commit 516ceb5882
13 changed files with 366 additions and 83 deletions

View File

@@ -0,0 +1,17 @@
package entity
import "time"
// VoiceSample tracks all files produced during voice message processing.
// Files are kept on disk until Cleanup() is called after successful analysis.
type VoiceSample struct {
ID string
UserID int64
ChatID int64
FileIDTg string // original Telegram file ID
OGGPath string // downloaded raw audio
WAVPath string // ffmpeg-converted audio
VTTPath string // WebVTT subtitle file generated by Whisper
Transcript string
CreatedAt time.Time
}