Skip to content

[FEATURE] Retain inbound voice/audio files locally with cleanup #668

Description

@edenreich

Summary

Inbound Telegram voice/audio messages are already transcribed to text via local
whisper.cpp (shipped in #559 / commit 2f3828a). The original request (#433) also asked
for the raw voice files to be retained locally with cleanup (e.g. keep only the last N).
Today the downloaded audio is written to an OS temp file and deleted immediately after
transcription (internal/services/channels/telegram.go transcribeVoice -> defer
os.Remove; internal/stt/file.go defer os.Remove on the WAV), so nothing is kept.

This issue tracks the remaining retention criterion split out from #433.

Acceptance Criteria

  • Downloaded voice/audio files are retained under a configurable directory (default e.g. ~/.infer/voice/)
  • Retention bounded by a configurable cap (e.g. speech_to_text.retain_recordings: 10; 0 = keep none = current behavior)
  • Oldest files pruned automatically once the cap is exceeded
  • New config field seeded by infer init and documented in docs/speech-to-text.md
  • Unit-tested (retention + pruning)

Activity

  1. added
    enhancement
    on Jun 27, 2026
  2. moved this to Todo in 2026on Jun 27, 2026
  3. moved this from Todo to In progress in 2026on Jun 27, 2026
  4. moved this from In progress to QA in 2026on Jun 27, 2026
  5. moved this from QA to Done in 2026on Jun 28, 2026
  6. inference-gateway-releaser commented on Jun 28, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.125.0 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementreleased

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions