Skip to content

Migrate to faster-whisper, fix queue per-user limit#1

Open
AlexMelanFromRingo wants to merge 1 commit intomainfrom
feature/migrate-to-faster-whisper
Open

Migrate to faster-whisper, fix queue per-user limit#1
AlexMelanFromRingo wants to merge 1 commit intomainfrom
feature/migrate-to-faster-whisper

Conversation

@AlexMelanFromRingo
Copy link
Copy Markdown
Owner

Summary

  • Replaced openai-whisper + torch with faster-whisper (CTranslate2) — significantly lower RAM usage and faster CPU inference
  • Fixed per-user queue bug — previously a user could not send a second voice message until the first one finished processing (the check on active_tasks[chat_id] blocked it). Now multiple messages per user are allowed up to QUEUE_MAXSIZE
  • Added COMPUTE_TYPE config (default int8) — reduces RAM ~2x on CPU
  • Added VAD filtering — skips silence for faster transcription
  • Added .env.example for easier deployment
  • Updated README with installation instructions and recommended CPU config

Test plan

  • Send a voice message — should return transcribed text
  • Send two voice messages in a row — both should queue and process
  • Send a video note — should extract audio and transcribe
  • Run /start — should show server info with faster-whisper details
  • Run /status — should show queue status and user task count
  • Verify int8 compute type works on CPU without errors

🤖 Generated with Claude Code

…limit

Replace openai-whisper + torch with faster-whisper (CTranslate2) for
significantly lower RAM usage and faster CPU inference. Remove the
per-user single-task restriction that prevented sending multiple voice
messages simultaneously. Add thread-safe active_tasks tracking, VAD
filtering, int8 compute type support, and .env.example for easier setup.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant