{"id":13431045,"url":"https://github.com/audiojs/audio-speaker","last_synced_at":"2025-10-09T13:44:16.405Z","repository":{"id":53716745,"uuid":"43621699","full_name":"audiojs/audio-speaker","owner":"audiojs","description":"Output audio stream to speaker, browser/node-wise","archived":false,"fork":false,"pushed_at":"2022-02-05T01:00:19.000Z","size":206,"stargazers_count":103,"open_issues_count":17,"forks_count":8,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-08-17T01:39:58.981Z","etag":null,"topics":["audio","audiojs","speaker","web-audio"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/audiojs.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}},"created_at":"2015-10-04T01:57:19.000Z","updated_at":"2024-01-09T10:25:30.000Z","dependencies_parsed_at":"2022-09-26T17:00:46.248Z","dependency_job_id":null,"html_url":"https://github.com/audiojs/audio-speaker","commit_stats":null,"previous_names":["audio-lab/speaker"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/audiojs/audio-speaker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/audiojs%2Faudio-speaker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/audiojs%2Faudio-speaker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/audiojs%2Faudio-speaker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/audiojs%2Faudio-speaker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/audiojs","download_url":"https://codeload.github.com/audiojs/audio-speaker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/audiojs%2Faudio-speaker/sbom","scorecard":{"id":216105,"data":{"date":"2025-08-11","repo":{"name":"github.com/audiojs/audio-speaker","commit":"079bbb7404d8282a34f0f8335e7ecbb8c159c3fc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":2,"reason":"Found 4/20 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 15 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T01:40:20.948Z","repository_id":53716745,"created_at":"2025-08-17T01:40:20.949Z","updated_at":"2025-08-17T01:40:20.949Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001461,"owners_count":26083102,"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-10-09T02:00:07.460Z","response_time":59,"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":["audio","audiojs","speaker","web-audio"],"created_at":"2024-07-31T02:01:00.066Z","updated_at":"2025-10-09T13:44:16.387Z","avatar_url":"https://github.com/audiojs.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# audio-speaker [![Build Status](https://travis-ci.org/audiojs/audio-speaker.svg?branch=master)](https://travis-ci.org/audiojs/audio-speaker) [![stable](https://img.shields.io/badge/stability-stable-brightgreen.svg)](http://github.com/badges/stability-badges) [![Greenkeeper badge](https://badges.greenkeeper.io/audiojs/audio-speaker.svg)](https://greenkeeper.io/)\n\nOutput audio stream to speaker in node or browser.\n\n[![npm install audio-speaker](https://nodei.co/npm/audio-speaker.png?mini=true)](https://npmjs.org/package/audio-speaker/)\n\n\n### Use as a stream\n\n```js\nvar Speaker = require('audio-speaker/stream');\nvar Generator = require('audio-generator/stream');\n\nGenerator(function (time) {\n\t//panned unisson effect\n\tvar τ = Math.PI * 2;\n\treturn [Math.sin(τ * time * 441), Math.sin(τ * time * 439)];\n})\n.pipe(Speaker({\n\t//PCM input format defaults, optional.\n\t//channels: 2,\n\t//sampleRate: 44100,\n\t//byteOrder: 'LE',\n\t//bitDepth: 16,\n\t//signed: true,\n\t//float: false,\n\t//interleaved: true,\n}));\n```\n\n### Use as a pull-stream\n\n```js\nconst pull = require('pull-stream/pull');\nconst speaker = require('audio-speaker/pull');\nconst osc = require('audio-oscillator/pull');\n\npull(osc({frequency: 440}), speaker());\n```\n\n### Use directly\n\nSpeaker is [async-sink](https://github.com/audiojs/contributing/wiki/Streams-convention) with `fn(data, cb)` notation.\n\n```js\nconst createSpeaker = require('audio-speaker');\nconst createGenerator = require('audio-generator');\n\nlet output = createSpeaker();\nlet generate = createGenerator(t =\u003e Math.sin(t * Math.PI * 2 * 440));\n\n(function loop (err, buf) {\n\tlet buffer = generate();\n\toutput(buffer, loop);\n})();\n```\n\n#### Related\n\n\u003e [web-audio-stream](https://github.com/audiojs/web-audio-stream) — stream data to web-audio.\u003cbr/\u003e\n\u003e [audio-through](http://npmjs.org/package/audio-through) — universal stream for processing audio.\u003cbr/\u003e\n\u003e [node-speaker](http://npmjs.org/package/speaker) — output pcm stream to speaker in node.\u003cbr/\u003e\n\u003e [audio-feeder](https://github.com/brion/audio-feeder) — cross-browser speaker for pcm data.\u003cbr/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faudiojs%2Faudio-speaker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faudiojs%2Faudio-speaker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faudiojs%2Faudio-speaker/lists"}