Skip to content

Add a local Whisper STT backend as a Deepgram alternative #6

Description

@ericwang915

Voice input currently requires a Deepgram API key (pythonclaw/core/stt.py). Add an optional local backend using faster-whisper so voice works fully offline (pairs well with the Ollama local setup).

Suggested approach:

  • Add stt.provider config (deepgram | whisper, default deepgram)
  • When whisper, transcribe with faster-whisper (lazy import, optional dependency)
  • Keep the same transcribe_bytes / transcribe_bytes_async interface so channels don't change

Acceptance: with stt.provider=whisper and no Deepgram key, a Telegram/Web voice message is transcribed locally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions