
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-audio-stream
Advanced tools
`react-audio-stream` is a React library providing a custom hook for capturing audio streams from a user's microphone and sending them as Blob chunks at specified time intervals.
react-audio-stream is a React library providing a custom hook for capturing audio streams from a user's microphone and sending them as Blob chunks at specified time intervals.
You can install react-audio-stream via npm or yarn:
npm install react-audio-stream
or
yarn add react-audio-stream
import React from 'react'
import { useAudioStream } from 'react-audio-stream'
const App = () => {
const sendBlob = (data: Blob) => {
// write your stream logic here.
console.log(data)
}
const { startStream, stopStream } = useAudioStream(sendBlob)
return (
<div>
<button
onClick={() => {
startStream()
}}
>
start stream
</button>
<button
onClick={() => {
stopStream()
}}
>
stop stream
</button>
</div>
)
}
export default App
useAudioStream(sendBlob: (blob: Blob) => void, timeSlice?: number)A custom React hook for capturing audio streams from a user's microphone and sending them as Blob chunks at specified time intervals.
sendBlob: A function that handles the received blob chunks.timeSlice: Optional. Time interval in milliseconds at which to slice the audio data. Default is 500.An object with the following methods:
startStream(): Starts capturing audio stream.stopStream(): Stops capturing audio stream.You can find an example usage of useAudioStream in the example directory.
This project is licensed under the MIT License. See the LICENSE file for details.
FAQs
`react-audio-stream` is a React library providing a custom hook for capturing audio streams from a user's microphone and sending them as Blob chunks at specified time intervals.
The npm package react-audio-stream receives a total of 36 weekly downloads. As such, react-audio-stream popularity was classified as not popular.
We found that react-audio-stream 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.