{"id":25344585,"url":"https://github.com/jbukuts/wav-parse","last_synced_at":"2026-05-19T04:38:10.868Z","repository":{"id":274334807,"uuid":"922593183","full_name":"jbukuts/wav-parse","owner":"jbukuts","description":"Isomorphic WAV file parser for JavaScript","archived":false,"fork":false,"pushed_at":"2025-02-16T09:27:54.000Z","size":11844,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-05T06:40:10.860Z","etag":null,"topics":["isomorphic","javascript","js","parser","wav"],"latest_commit_sha":null,"homepage":"https://jbukuts.github.io/wav-parse/","language":"TypeScript","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/jbukuts.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-01-26T16:16:19.000Z","updated_at":"2025-02-16T09:27:58.000Z","dependencies_parsed_at":"2025-04-08T15:20:35.768Z","dependency_job_id":"5553dbaa-df06-49ca-a341-bf9c66de80c8","html_url":"https://github.com/jbukuts/wav-parse","commit_stats":null,"previous_names":["jbukuts/wav-parse"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jbukuts/wav-parse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbukuts%2Fwav-parse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbukuts%2Fwav-parse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbukuts%2Fwav-parse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbukuts%2Fwav-parse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jbukuts","download_url":"https://codeload.github.com/jbukuts/wav-parse/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbukuts%2Fwav-parse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33202005,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"online","status_checked_at":"2026-05-19T02:00:06.763Z","response_time":58,"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":["isomorphic","javascript","js","parser","wav"],"created_at":"2025-02-14T11:37:45.263Z","updated_at":"2026-05-19T04:38:10.834Z","avatar_url":"https://github.com/jbukuts.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wav-parse\n\nThis is a WAV file parser designed to extract header metadata and amplitude data from WAV files. It is written to support a multitude of WAV file encodings including:\n\n- Little/big endian encoding\n- WAV Extensible data\n  - A-law amplitude data\n  - ~Mu-law amplitude data~ (need to add reader function)\n  - Uncommon header chunks like `fact`/`peak`\n\n\u003e This package is designed to run in both browser and Node environments. Because of this `feross/buffer` is being used under the hood to facilitate this and allow me to extend the `Buffer` class with custom readers without affecting the native `Buffer` in Node.\n\n## Examples\n\n### Using Node\n\n```ts\n// start by getting the byte data of a given WAV file\nconst buffer = fs.readFileSync('./test.wav')\n\n// read just the header info\nconst { header, offset } = parseHead(buffer)\n// offset represents the byte-size of the header.\n\n// or read the header and all amplitude data\nconst { \n  chunkId,\n  chunkSz,\n  type,\n  data,\n  fmt,\n  fact,\n  peak\n  amplitudeData,\n} = readFile(buffer)\n// amplitudeData will be a TypedArray\n```\n\n### In the browser\n\n```ts\n// get a File object somehow\n\nconst readFileAsArrayBuffer = async (f: File): Promise\u003cArrayBuffer\u003e =\u003e {\n  const reader = new FileReader();\n\n  return new Promise((res) =\u003e {\n    reader.onload = (event) =\u003e {\n      const result = event.target?.result as ArrayBuffer;\n      res(result);\n    };\n\n    reader.readAsArrayBuffer(f);\n  });\n};\n\n// turn file ref into ArrayBuffer of byte data\nconst arrBuffer = await readFileAsArrayBuffer(file)\n\n// read the header info\nconst { header, offset } = parseHead(arrBuffer)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbukuts%2Fwav-parse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbukuts%2Fwav-parse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbukuts%2Fwav-parse/lists"}