{"id":18250578,"url":"https://github.com/asivery/node-shazam-api","last_synced_at":"2025-04-04T16:31:33.752Z","repository":{"id":112255919,"uuid":"542671092","full_name":"asivery/node-shazam-api","owner":"asivery","description":"Fully reverse engeenired shazam api based on Numenorean's ShazamAPI","archived":false,"fork":false,"pushed_at":"2024-11-09T02:26:30.000Z","size":124,"stargazers_count":18,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-20T15:12:31.128Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/asivery.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-28T15:52:23.000Z","updated_at":"2025-01-19T13:00:31.000Z","dependencies_parsed_at":"2024-01-16T20:49:46.827Z","dependency_job_id":"40a2e67c-bd2c-4836-94bf-676dba7defd7","html_url":"https://github.com/asivery/node-shazam-api","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asivery%2Fnode-shazam-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asivery%2Fnode-shazam-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asivery%2Fnode-shazam-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asivery%2Fnode-shazam-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asivery","download_url":"https://codeload.github.com/asivery/node-shazam-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247209402,"owners_count":20901768,"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-11-05T09:45:14.886Z","updated_at":"2025-04-04T16:31:33.448Z","avatar_url":"https://github.com/asivery.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Shazam Api for node-js\n\nThis library is heavily based on [Numenorean's work](https://github.com/Numenorean/ShazamAPI).\n\nUsage:\n\n```js\nimport { Shazam, s16LEToSamplesArray } from 'shazam-api';\nimport fs from 'fs';\n\nconst shazam = new Shazam();\nconst fileContents = fs.readFileSync(\"test.pcm\");\nconst samples = s16LEToSamplesArray(fileContents);\n\nconst songData = await shazam.recognizeSong(samples);\nconsole.log(songData);\n```\n\nThe data passed to s16LEToSamplesArray needs to be raw PCM with:\n- Sample rate set to 16000Hz\n- Bit depth set to 16 bits\n- 1 channel of audio\n\nSuch a file can be generated with ffmpeg using the command:\n```\nffmpeg -i \u003csource file\u003e -ar 16000 -ac 1 -f s16le test.pcm\n```\n\nOr within node or the browser thanks to [ffmpeg.wasm](https://www.npmjs.com/package/@ffmpeg/ffmpeg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasivery%2Fnode-shazam-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasivery%2Fnode-shazam-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasivery%2Fnode-shazam-api/lists"}