{"id":42017105,"url":"https://github.com/ackkerman/live-caption","last_synced_at":"2026-01-26T03:16:32.064Z","repository":{"id":290586847,"uuid":"974945277","full_name":"ackkerman/live-caption","owner":"ackkerman","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-18T01:02:14.000Z","size":4984,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-18T01:28:40.374Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ackkerman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-29T14:40:58.000Z","updated_at":"2025-05-18T01:02:18.000Z","dependencies_parsed_at":"2025-04-29T16:00:38.553Z","dependency_job_id":"9cc2d3f2-cbac-4795-ab41-04a166643b91","html_url":"https://github.com/ackkerman/live-caption","commit_stats":null,"previous_names":["ackkerman/live-caption"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ackkerman/live-caption","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ackkerman%2Flive-caption","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ackkerman%2Flive-caption/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ackkerman%2Flive-caption/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ackkerman%2Flive-caption/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ackkerman","download_url":"https://codeload.github.com/ackkerman/live-caption/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ackkerman%2Flive-caption/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28765577,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T02:25:41.078Z","status":"ssl_error","status_checked_at":"2026-01-26T02:24:28.809Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-26T03:16:31.574Z","updated_at":"2026-01-26T03:16:32.057Z","avatar_url":"https://github.com/ackkerman.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Live Caption App for Linux\n\n[English](./README.md) / [日本語](./README_JA.md)\n\nThis application recognizes all audio played on your PC in real time  \nand displays subtitles (captions) on the screen.\n\nIt is inspired by the \"Live Caption\" feature available on Android.\n\nhttps://github.com/user-attachments/assets/5fbaa334-c55b-49f7-b66b-9903ab4a828f\n\n\n## ✨ Features\n\n- Capture all audio output from the system (videos, music, calls, etc.)\n- Real-time subtitles using the Vosk speech recognition engine\n- Supports partial recognition for ultra-low latency caption updates\n- Always-on-top caption window with customizable positioning\n- Safe termination by pressing Ctrl+C twice\n\n\n## 🖥 System Requirements\n\n- Linux (**PipeWire or PulseAudio** environment)\n- Python 3.10 or higher recommended\n- Monitor source available (e.g., `alsa_output.pci-0000_00_1f.3.analog-stereo.monitor`)\n\n\n## 🛠 Installation\n\n1. Clone this repository.\n\n2. Install the required packages.\n\n    ```bash\n    poetry install\n    ```\n\n3. Check the monitor source device index.\n\n    ```bash\n    poetry run python scripts/monitor_device.py\n    ```\n\n4. Set the correct `MONITOR_DEVICE_INDEX` in `live_caption/cli.py`, or specify it when\n   launching via `--device`.\n\n\n## 🚀 How to Run\n\n```bash\npoetry run live-caption\n```\n\nCommon options:\n\n```bash\npoetry run live-caption --device 2 --mic-device 1 --sample-rate 44100 --chunk-size 2048\n```\n\n- A caption window will appear pinned to the top of your screen.\n- Subtitles will update in real time according to the audio output.\n- Press **M** to toggle microphone capture on or off.\n\n\n## 🛑 How to Exit\n\n- Press **Ctrl+C twice** to safely terminate the application.\n- Resources will be properly released without freezing.\n\n## 🧪 Running Tests\n\n```bash\npoetry run python -m unittest discover -v\n```\n\nThe tests use simple mocks and do not require audio devices or Vosk models.\n\n\n## ⚙️ Planned Future Enhancements\n\n- [x] **Toggle device microphone**\n- [ ] **Customizable caption styles** (font, color, size, transparency, etc.)\n- [x] **Text wrapping and multi-line caption support**\n- [ ] **Switchable speech recognition engines (e.g., Whisper.cpp support)**\n- [ ] **Multilingual captions (automatic language switching and translation)**\n- [ ] **GUI tool for adjusting caption window position and size**\n- [ ] **Click-through (mouse pass-through) mode for the caption window**\n- [x] **Fade-out and auto-hide options when audio is not detected**\n\n\n## 🛡 Notes\n\n- Recognition accuracy depends on the Vosk model used.  \n  For higher accuracy, consider using larger models or switching to different engines.\n- This application works entirely locally; no audio data is sent externally.\n\n## 📜 License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fackkerman%2Flive-caption","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fackkerman%2Flive-caption","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fackkerman%2Flive-caption/lists"}