{"id":25992958,"url":"https://github.com/victor141516/node-macos-system-audio-recorder","last_synced_at":"2026-04-21T19:02:29.387Z","repository":{"id":280009268,"uuid":"940758338","full_name":"victor141516/node-macos-system-audio-recorder","owner":"victor141516","description":"A Node.js library to record system audio on macOS using ScreenCaptureKit","archived":false,"fork":false,"pushed_at":"2025-02-28T18:38:12.000Z","size":64,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-04T07:36:57.828Z","etag":null,"topics":["audio-record","macos","screen-capture-kit","screencapturekit","stereo-mix","system-audio-record"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/victor141516.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}},"created_at":"2025-02-28T18:30:24.000Z","updated_at":"2025-10-03T07:03:06.000Z","dependencies_parsed_at":"2025-02-28T22:02:55.101Z","dependency_job_id":"507e0ba6-5684-4509-9230-14926f480fb3","html_url":"https://github.com/victor141516/node-macos-system-audio-recorder","commit_stats":null,"previous_names":["victor141516/node-macos-system-audio-recorder"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/victor141516/node-macos-system-audio-recorder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victor141516%2Fnode-macos-system-audio-recorder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victor141516%2Fnode-macos-system-audio-recorder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victor141516%2Fnode-macos-system-audio-recorder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victor141516%2Fnode-macos-system-audio-recorder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/victor141516","download_url":"https://codeload.github.com/victor141516/node-macos-system-audio-recorder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victor141516%2Fnode-macos-system-audio-recorder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32105868,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"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":["audio-record","macos","screen-capture-kit","screencapturekit","stereo-mix","system-audio-record"],"created_at":"2025-03-05T14:33:45.050Z","updated_at":"2026-04-21T19:02:29.368Z","avatar_url":"https://github.com/victor141516.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# macOS System Audio Recorder\n\nA Node.js library to record system audio on macOS using ScreenCaptureKit.\n\n## Features\n\n- Record system audio on macOS\n- Get audio stream as raw PCM data\n- Configure audio format details (channels, sample rate, etc.)\n- Built with Swift and Node.js\n\n## Installation\n\n```bash\nnpm install macos-system-audio-recorder\n```\n\n## Requirements\n\n- macOS operating system\n- Node.js v14.16.0 or later\n- Screen Recording permission enabled in System Settings \u003e Privacy \u0026 Security\n\n## Usage\n\n```typescript\nimport { SystemAudioRecorder } from \"macos-system-audio-recorder\";\n\n// Create recorder instance\nconst recorder = new SystemAudioRecorder();\n\n// Start recording\nrecorder.start();\n\n// Get audio format details\nconst audioDetails = await recorder.getAudioDetails();\nconsole.log(\"Audio format:\", audioDetails);\n\n// Get audio stream\nconst stream = recorder.getStream();\nstream.on(\"data\", (data) =\u003e {\n  // Handle raw PCM audio data\n  console.log(\"Received audio data:\", data.length, \"bytes\");\n});\n\n// Stop recording\nrecorder.stop();\n```\n\n## API Reference\n\n### `SystemAudioRecorder`\n\nMain class to handle system audio recording.\n\n#### Methods\n\n- `start()`: Start recording system audio\n- `stop()`: Stop recording\n- `getAudioDetails()`: Get audio format details\n- `getStream()`: Get readable stream of raw PCM audio data\n\n#### Audio Details\n\nThe `getAudioDetails()` method returns an object with:\n\n```typescript\ninterface AudioDetails {\n  channels: 1 | 2; // Number of audio channels\n  bytesPerFrame: 4 | 8; // Bytes per audio frame\n  bitsPerChannel: 16 | 32; // Bits per channel\n  formatFlags: number; // Audio format flags\n  sampleRate: 48000 | 44100 | 32000; // Sample rate in Hz\n  formatID: number; // Audio format ID\n}\n```\n\n## Error Handling\n\nThe library throws these custom errors:\n\n- `SystemAudioRecorderError`: Base error class\n- `SystemAudioRecorderNotStartedError`: When trying to access recorder before starting\n- `SystemAudioRecorderSubprocessError`: When the Swift subprocess encounters an error\n\n## Development\n\n1. Clone the repository\n2. Install dependencies: `npm install`\n3. Build the Swift binary: `cd swift \u0026\u0026 ./build.sh`\n4. Build TypeScript: `npm run build`\n5. Run example: `npm run dev`\n\n## License\n\nMIT\n\n## Contributing\n\nContributions welcome! Please read the contributing guidelines before submitting PRs.\n\n## Credits\n\nDeveloped by Victor Fernandez (@victor141516)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictor141516%2Fnode-macos-system-audio-recorder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictor141516%2Fnode-macos-system-audio-recorder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictor141516%2Fnode-macos-system-audio-recorder/lists"}