{"id":13760126,"url":"https://github.com/fardog/node-osx-audio","last_synced_at":"2025-09-12T11:45:12.240Z","repository":{"id":20568295,"uuid":"23848573","full_name":"fardog/node-osx-audio","owner":"fardog","description":"A node.js native library that provides access to Mac OS X Audio I/O as streams.","archived":false,"fork":false,"pushed_at":"2016-05-14T20:01:40.000Z","size":29,"stargazers_count":50,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-14T18:11:13.870Z","etag":null,"topics":["audio","macos","native-libraries"],"latest_commit_sha":null,"homepage":"https://www.npmjs.org/package/osx-audio","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fardog.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}},"created_at":"2014-09-09T20:14:54.000Z","updated_at":"2024-04-14T18:11:13.871Z","dependencies_parsed_at":"2022-09-10T22:50:26.421Z","dependency_job_id":null,"html_url":"https://github.com/fardog/node-osx-audio","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fardog%2Fnode-osx-audio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fardog%2Fnode-osx-audio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fardog%2Fnode-osx-audio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fardog%2Fnode-osx-audio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fardog","download_url":"https://codeload.github.com/fardog/node-osx-audio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227961889,"owners_count":17847836,"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","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","macos","native-libraries"],"created_at":"2024-08-03T13:01:03.721Z","updated_at":"2024-12-03T16:51:20.799Z","avatar_url":"https://github.com/fardog.png","language":"C++","funding_links":[],"categories":["C++"],"sub_categories":[],"readme":"# osx-audio\n\nA library that provides access to Mac OS X Audio I/O as streams. Only input is\nsupported so far.\n\nAudio captured is Signed 16-bit PCM, Stereo, 44100Hz, in little-endian\nbyte-order. Alternate capture modes will be supported in future versions.\n\n## Installation\n\nTo install the module for use in your projects:\n\n```bash\nnpm install osx-audio\n```\n\n## Usage\n\nPipe input to a writeable file stream:\n\n```js\nvar fs = require('fs');\nvar audio = require('osx-audio');\n\nvar input = new audio.Input();\n\nvar writable = fs.createWriteStream('output.wav');\ninput.pipe(writable);\n```\n\n### Options\n\nNone yet.\n\n### API\n\n#### audio.Input()\n\nCreates a readable stream from the system audio's selected input.\n\n## Environment Variables\n\nNone yet.\n\n## Known Issues\n\n- Opening, closing, then opening an input will fail to open. Re-instantiating\n  works fine.\n\n## Contributing\n\nFeel free to send pull requests! I'm not picky, but would like the following:\n\n1. Write tests for any new features, and do not break existing tests.\n2. Be sure to point out any changes that break API.\n\n## History\n\n- **v1.0.0**  \nPorts native bindings to [nan][], newly supporting the latest Node.js versions.\nHuge thanks to [Alexander Kuznetsov][alexkuz] for this contribution!\n\n- **v0.2.0**  \nReimplements streams (again) and fixes stuttering bugs. Exposes audio event\nemitter directly if you wanted to use it.\n\n- **v0.1.0**  \nReimplement streams and change API.\n\n- **v0.0.2**  \nFixup stream resume crash.\n\n- **v0.0.1**  \nInitial Release. Only input is supported.\n\n## The MIT License (MIT)\n\nCopyright (c) 2014 Nathan Wittstock\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n[nan]: https://www.npmjs.com/package/nan\n[alexkuz]: https://github.com/alexkuz\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffardog%2Fnode-osx-audio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffardog%2Fnode-osx-audio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffardog%2Fnode-osx-audio/lists"}