{"id":14385097,"url":"https://github.com/parshap/node-fpcalc","last_synced_at":"2025-08-20T14:32:04.363Z","repository":{"id":9785724,"uuid":"11760051","full_name":"parshap/node-fpcalc","owner":"parshap","description":"Calculate AcoustID audio fingerprint","archived":false,"fork":false,"pushed_at":"2022-02-05T18:21:32.000Z","size":219,"stargazers_count":69,"open_issues_count":5,"forks_count":13,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-12-06T09:41:53.478Z","etag":null,"topics":[],"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/parshap.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":"2013-07-30T08:15:12.000Z","updated_at":"2024-08-27T08:36:01.000Z","dependencies_parsed_at":"2022-07-08T03:45:16.647Z","dependency_job_id":null,"html_url":"https://github.com/parshap/node-fpcalc","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parshap%2Fnode-fpcalc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parshap%2Fnode-fpcalc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parshap%2Fnode-fpcalc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parshap%2Fnode-fpcalc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parshap","download_url":"https://codeload.github.com/parshap/node-fpcalc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230431103,"owners_count":18224655,"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":[],"created_at":"2024-08-28T18:01:57.081Z","updated_at":"2024-12-19T12:10:46.898Z","avatar_url":"https://github.com/parshap.png","language":"JavaScript","readme":"# fpcalc\n\nThis module is a wrapper around the [`fpcalc` command-line tool][chromaprint]\nand provides a node interface to calculate [AcoustID][] audio\nfingerprints for audio files.\n\n[chromaprint]: http://acoustid.org/chromaprint\n[acoustid]: http://acoustid.org/\n\n## Installing Chromaprint\n\n[`fpcalc` (provided by *Chromaprint*)][chromaprint] must be installed for\nthis module to function.\n\n**OSX using Homebrew**\n\n```\n$ brew install chromaprint\n```\n\n**Ubuntu**\n\n```\n$ sudo apt-get install libchromaprint-tools\n```\n\n## Example\n\n```js\nvar fpcalc = require(\"fpcalc\");\nfpcalc(\"./audio.mp3\", function(err, result) {\n  if (err) throw err;\n  console.log(result.file, result.duration, result.fingerprint);\n});\n```\n\n## API\n\n### `fpcalc(file, [options,] callback)`\n\nCalculates the fingerprint of the given audio file.\n\n*File* must be the path to an audio file or a readable stream.\n\nIf using a stream, note that you will not get `duration` out due to an [fpcalc issue](https://github.com/acoustid/chromaprint/issues/53).\n\n*Options* may be an object with any of the following keys:\n\n * `length`: Length of the audio data used for fingerprint calculation\n   (passed as `-length` option)\n * `raw`: Output the raw uncompressed fingerprint (default: `false`)\n * `command`: Path to the fpcalc command (default: `\"fpcalc\"` - expects\n   executable in `$PATH`)\n\n*Callback* must be a function that will be called with `callback(err,\nresult)` once the fingerprint is calculated. The *result object* will\ncontain the following keys:\n\n * `file`: Path to the audio file\n * `duration`: Duration of audio file in seconds\n * `fingerprint`: Fingerprint of audio file - *Buffer* if `options.raw`,\n   *String* otherwise\n\n## Installation\n\n```\nnpm install --save fpcalc\n```\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparshap%2Fnode-fpcalc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparshap%2Fnode-fpcalc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparshap%2Fnode-fpcalc/lists"}