Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@qgustavor/stream-audio-fingerprint
Advanced tools
Audio landmark fingerprinting as a JavaScript module
This module is module that converts a PCM audio signal into a series of audio fingerprints. It works with audio tracks as well as with unlimited audio streams, e.g. broadcast radio.
It's based on lpolito/stream-audio-fingerprint which is based adblockradio/stream-audio-fingerprint which is one of the foundations of the Adblock Radio project.
Check the original project.
npm install @qgustavor/stream-audio-fingerprint
The algorithm is in src/codegen_landmark.ts
.
A demo usage is proposed below. It requires the executable ffmpeg and Deno to run.
import Codegen from './codegen_landmark.ts'
const decoder = Deno.run({
cmd: [
'ffmpeg',
'-i', 'pipe:0',
'-acodec', 'pcm_s16le',
'-ar', '22050',
'-ac', '1',
'-f', 's16le',
'-v', 'fatal',
'pipe:1'
],
stdout: 'piped',
stdin: 'inherit'
})
const fingerprinter = new Codegen()
for await (const audioData of decoder.stdout.readable) {
const data = fingerprinter.process(audioData)
for (let i = 0; i < data.tcodes.length; i++) {
console.log(`time=${data.tcodes[i]} fingerprint=${data.hcodes[i]}`)
}
}
and then we pipe audio data, either a stream or a file
curl http://radiofg.impek.com/fg | deno run --allow-run=ffmpeg codegen_demo.mjs
deno run --allow-run=ffmpeg codegen_demo.mjs < awesome_music.mp3
Type definitions are not included because Deno can load TypeScript files directly and because this TypeScript issue.
See LICENSE file.
FAQs
Audio landmark fingerprinting as a JavaScript module
The npm package @qgustavor/stream-audio-fingerprint receives a total of 6,163 weekly downloads. As such, @qgustavor/stream-audio-fingerprint popularity was classified as popular.
We found that @qgustavor/stream-audio-fingerprint demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.