
Security News
Python Adopts Standard Lock File Format for Reproducible Installs
Python has adopted a standardized lock file format to improve reproducibility, security, and tool interoperability across the packaging ecosystem.
react-tune-trace
Advanced tools
Audio / Voice Recorder w/ Audio ogge for React using the Web Audio API
npm install --save react-tune-trace
import React, { Component } from 'react'
import AudioReactRecorder, { RecordState } from 'react-tune-trace'
class App extends Component {
constructor(props) {
super(props)
this.state = {
recordState: null
}
}
start = () => {
this.setState({
recordState: RecordState.START
})
}
stop = () => {
this.setState({
recordState: RecordState.STOP
})
}
//audioData contains blob and blobUrl
onStop = (audioData) => {
console.log('audioData', audioData)
}
render() {
const { recordState } = this.state
return (
<div>
<AudioReactRecorder state={recordState} onStop={this.onStop} />
<button onClick={this.start}>Start</button>
<button onClick={this.stop}>Stop</button>
</div>
)
}
}
Property name | Type | Default | Description |
---|---|---|---|
state | string | RecordState.NONE | RecordState.(NONE,START,STOP,PAUSE) |
type | string | audio/ogg | Ogg type support in this version |
backgroundColor | string | rgb(200, 200, 200) | Background color of the audio ogge / canvas |
foregroundColor | string | rgb(0, 0, 0) | Foreground color of the audio ogge / canvas |
canvasWidth | number,string | 500 | Canvas width (you can use css to make it responsive) |
canvasHeight | number,string | 300 | canvas height |
MIT © pariazar
FAQs
Audio / Voice Recorder for React
The npm package react-tune-trace receives a total of 7 weekly downloads. As such, react-tune-trace popularity was classified as not popular.
We found that react-tune-trace 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
Python has adopted a standardized lock file format to improve reproducibility, security, and tool interoperability across the packaging ecosystem.
Security News
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.