
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-native-record-audio-stream
Advanced tools
<!-- * @Author: Levi Li * @Date: 2024-01-02 09:28:34 * @description: -->
yarn add react-native-record-audio-stream
cd ios
pod install
Add these lines to ios/[YOU_APP_NAME]/info.plist
<key>NSMicrophoneUsageDescription</key>
<string>We need your permission to use the microphone.</string>
Add the following line to android/app/src/main/AndroidManifest.xml
<uses-permission android:name="android.permission.RECORD_AUDIO" />
import AudioStream from 'react-native-record-audio-stream';
const options = {
sampleRate: 32000, // default is 44100 but 32000 is adequate for accurate voice recognition
channels: 1, // 1 or 2, default 1
bitsPerSample: 16, // 8 or 16, default 16
audioSource: 6, // android only (see below)
bufferSize: 4096 // default is 2048
};
AudioStream.init(options);
AudioStream.on('data', data => {
// base64-encoded audio data chunks
});
...
AudioStream.start();
...
AudioStream.stop();
...
audioSource should be one of the constant values from here. Default value is 6 (VOICE_RECOGNITION).
Use 3rd-party modules like buffer to decode base64 data. Example:
// yarn add buffer
import { Buffer } from 'buffer';
...
AudioStream.on('data', data => {
var chunk = Buffer.from(data, 'base64');
});
MIT
FAQs
<!-- * @Author: Levi Li * @Date: 2024-01-02 09:28:34 * @description: -->
We found that react-native-record-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.