Gathering detailed insights and metrics for @sthales/opus-recorder
Gathering detailed insights and metrics for @sthales/opus-recorder
Gathering detailed insights and metrics for @sthales/opus-recorder
Gathering detailed insights and metrics for @sthales/opus-recorder
npm install @sthales/opus-recorder
Typescript
Module System
Node Version
NPM Version
75.1
Supply Chain
91.6
Quality
75
Maintenance
100
Vulnerability
99.6
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
1 Stars
2 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Apr 29, 2022
Latest Version
1.0.0
Package Id
@sthales/opus-recorder@1.0.0
Unpacked Size
546.23 kB
Size
171.06 kB
File Count
8
NPM Version
6.14.8
Node Version
12.18.3
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
No dependencies detected.
A library to encode the output of Web Audio API nodes as Opus and export in an Ogg container. Audio encoded using libopus ver 1.1.1 beta compiled with emscripten. Also included is audio resampler and Ogg Opus decoder.
var rec = new Recorder([config]);
Creates a recorder instance.
4096
.2048
- Voice, 2049
- Full Band Audio, 2051
- Restricted Low Delay. Defaults to 2049
.20
.48000
. Supported values are 8000
, 12000
, 16000
, 24000
or 48000
.stop
recording, so you can re-start
without re-initStream
. Defaults to false
.40
.0
and 1
. Defaults to 0
1
= mono, 2
= stereo. Defaults to 1
. Maximum 2
channels are supported.dataAvailable
event after each encoded page. Defaults to false
.rec.addEventListener( type, listener[, useCapture] )
addEventListener will add an event listener to the event target. Available events are "duration", "streamError", "streamReady", "dataAvailable", "start", "pause", "resume" and "stop".
rec.initStream()
initStream will request the user for permission to access the the audio stream and raise "streamReady" or "streamError".
rec.pause()
pause will keep the stream and monitoring alive, but will not be recording the buffers. Will raise the pause event. Subsequent calls to resume will add to the current recording.
rec.removeEventListener( type, listener[, useCapture] )
removeEventListener will remove an event listener from the event target.
rec.resume()
resume will resume the recording if paused. Will raise the resume event
rec.setMonitorGain( gain )
setMonitorGain will set the volume on what will be passed to the monitor. Monitor level does not affect the recording volume. Gain is an a-weighted value between 0 and 1
rec.start()
start will initalize the worker and begin capturing audio if the audio stream is ready. Will raise the start event when started.
rec.stop()
stop will cease capturing audio and disable the monitoring and mic input stream. Will request the recorded data and then terminate the worker once the final data has been published. Will raise the stop event when stopped.
rec.clearStream()
clearStream will stop and delete the stream got from initStream
, you will only ever call this manually if you have config.leaveStreamOpen
set to true
Recorder.isRecordingSupported()
Will return a truthy value indicating if the browser supports recording.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/2 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More