{"id":22825357,"url":"https://github.com/crabdancing/akasha","last_synced_at":"2025-08-22T02:08:28.722Z","repository":{"id":82553151,"uuid":"585336591","full_name":"crabdancing/akasha","owner":"crabdancing","description":"Headless recording app with automatic segmentation","archived":false,"fork":false,"pushed_at":"2025-02-04T22:55:56.000Z","size":205,"stargazers_count":2,"open_issues_count":5,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-24T04:32:51.389Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crabdancing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-01-04T23:04:47.000Z","updated_at":"2025-02-17T00:13:02.000Z","dependencies_parsed_at":"2023-03-12T16:09:03.454Z","dependency_job_id":"1a1d85a6-c9d4-48de-8fff-8207bf8ca4d1","html_url":"https://github.com/crabdancing/akasha","commit_stats":null,"previous_names":["a7287/akasha","alxpettit/akasha"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/crabdancing/akasha","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crabdancing%2Fakasha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crabdancing%2Fakasha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crabdancing%2Fakasha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crabdancing%2Fakasha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crabdancing","download_url":"https://codeload.github.com/crabdancing/akasha/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crabdancing%2Fakasha/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271574431,"owners_count":24783319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-12-12T17:10:29.017Z","updated_at":"2025-08-22T02:08:28.700Z","avatar_url":"https://github.com/crabdancing.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Akasha\n\n[![.github/workflows/rust.yml](https://github.com/alxpettit/akasha/actions/workflows/rust.yml/badge.svg)](https://github.com/alxpettit/akasha/actions/workflows/rust.yml)\n[![crates.io](https://img.shields.io/crates/v/akasha.svg)](https://crates.io/crates/akasha)\n\nAkasha is a headless recording app, designed to split recordings into multiple segments to make them easier to manage.\n\nIt's designed for low-resource consumption, making it useful as a background process for e.g. recording meetings,\nwithout having to keep OBS up, or write a jank shell utility involving `sox` or `ffmpeg`.\n\nIt theoretically supports every major platform (though I haven't bothered to test it on non-Linux ones,\nI have tried to only use platform independent libraries).\n\nIt supports autodetecting input devices, manually specifying devices by name, and features a reasonably intuitive command line. To get started, most of the time, you can do:\n\n```bash\nakasha rec --path-dir ~/MyAudioDirectory/\n```\n\nWhere `--path-dir` is the directory it will write files into.\n\nIf you do not specify `--path-dir`, e.g.:\n\n```bash\nakasha rec\n```\n\n...it will default to `~/Audio/akasha/`, where `~` is your home directory.\n\nAny directories that do not already exist, will be automatically created.\n\nIf the default audio device it detects is incorrect, you can override it. First, get a list of all available input devices:\n\n```bash\n\u003e akasha probe --type input-devices\nALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp\nALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp\nALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map\nALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map\nALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map\nALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map\nALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map\nALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map\nALSA lib pcm_dsnoop.c:566:(snd_pcm_dsnoop_open) unable to open slave\nALSA lib pcm_dsnoop.c:566:(snd_pcm_dsnoop_open) unable to open slave\n[\n    \"jack\",\n    \"pipewire\",\n    \"pulse\",\n    \"default\",\n    \"sysdefault:CARD=Generic\",\n    \"front:CARD=Generic,DEV=0\",\n    \"surround40:CARD=Generic,DEV=0\",\n    \"surround51:CARD=Generic,DEV=0\",\n    \"surround71:CARD=Generic,DEV=0\",\n] \n```\n\nYou'll have to forgive the ALSA vomit -- the cause seems to be [CPAL not setting the error handler correctly](https://github.com/RustAudio/cpal/issues/384).\nMaybe I'll make a PR and fix that at some point.\n\nAnyway, you can now pull audio from that specific device:\n\n```bash\nakasha rec --device \"pulse\" --path-dir ~/Audio \n````\n\nThere's also a cute real-time display of volume intensity, that works using SIMD calculations of audio volume via RMS.\nYou can pass the `--display` flag if you want that.\n\nTODO:\n\n- [ ] Add `--ogg-minimum-page-data-size` flag (see https://github.com/alxpettit/akasha/pull/1)\n- [ ] Add warnings for if f32 stream is all zeros, so that the user doesn't have to enable `--display` mode to tell.\n- [ ] Refactor error handling logic with snafu.\n- [ ] Nicer error messages\n- [ ] Eventually refactor out all the stream logic into audio-stream crate, maybe?\n- [x] Default recording path to make more novice-friendly.\n- [ ] Maybe fix raw mode not working with logging facilities (`\\n` -\u003e `\\r\\n`).\n- [ ] Fix tracebacks not working with raw mode (https://werat.dev/blog/pretty-rust-backtraces-in-raw-terminal-mode/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrabdancing%2Fakasha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrabdancing%2Fakasha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrabdancing%2Fakasha/lists"}