feat: Add Linux support (systemd services + faster-whisper voice transcription)#1
Open
UncleTallest wants to merge 2 commits intoseedprod:mainfrom
Open
feat: Add Linux support (systemd services + faster-whisper voice transcription)#1UncleTallest wants to merge 2 commits intoseedprod:mainfrom
UncleTallest wants to merge 2 commits intoseedprod:mainfrom
Conversation
- systemd/: service files for bot and daily briefing, timer for scheduling, README with full setup instructions - telegram-bot.py: platform detection for voice transcription; faster-whisper on Linux, mlx-whisper on macOS (Apple Silicon) - requirements.txt: clarify platform split for voice deps - README.md: Linux setup instructions alongside macOS, platform support table, systemd log commands No breaking changes. macOS behavior unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds full Linux parity to the existing macOS setup. No breaking changes -- all macOS behavior is unchanged.
What's added:
systemd/ -- Linux service files equivalent to the existing launchd/ templates:
claude-telegram-bot.service -- runs the bot continuously, restarts on failure, loads .env automatically
claude-daily-brief.service + claude-daily-brief.timer -- scheduled briefings via systemd timer (equivalent to StartCalendarInterval in launchd)
README.md -- full setup instructions including loginctl enable-linger for headless/server installs
telegram-bot.py -- platform detection for voice transcription:
macOS: uses existing mlx-whisper (unchanged)
Linux: uses faster-whisper with WhisperModel("small", device="cpu", compute_type="int8")
Graceful fallback if neither is installed, with platform-appropriate install instructions in the error message
requirements.txt -- clarified the platform split for voice deps with comments
README.md -- Linux instructions added alongside macOS throughout:
Platform support table
systemd setup steps mirroring the launchd steps
Linux log commands (journalctl)
sed one-liner for path substitution in service files
stronger visible warning if ALLOWED_USERS is empty on launch
Tested on: Pop!_OS 24.04, Python 3.12, Claude Code latest