
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-audio-recording-stream
Advanced tools
Audio record buffers for iOS and Android.
yarn add react-native-audio-recording-stream
react-native link react-native-audio-recording-stream
import AudioRecord from 'react-native-audio-recording-stream';
const options = {
sampleRate: 16000, // default 44100
channels: 1, // 1 or 2, default 1
bitsPerSample: 16, // 8 or 16, default 16
audioSource: 6, // android only (see below)
wavFile: 'test.wav', // default 'audio.wav'
chunkSize: 4096, //8192
};
AudioRecord.init(options);
AudioRecord.start();
AudioRecord.stop();
// or to get the wav file path
audioFile = await AudioRecord.stop();
AudioRecord.on('data', data => {
// base64-encoded audio data chunks
});
For audioSource use one of the constant values from here. Default value is 6 (VOICE_RECOGNITION).
Use 3rd-party module like buffer to decode base64 data. Example -
// yarn add buffer
import { Buffer } from 'buffer';
chunk = Buffer.from(data, 'base64');
Don't forget to add microphone permission in your app.
Example folder contain sample apps for recording (using this module) and playback (using 3rd party modules)
App1.js - uses react-native-sound for playback and pauseApp2.js - uses react-native-video for playback, pause and report progressApp3.js - uses react-native-audio-player-recorder for playback, pause and report progressI'm not a native app developer. Most of the code is taken from online resources.
FAQs
Audio record buffers for React Native
The npm package react-native-audio-recording-stream receives a total of 1 weekly downloads. As such, react-native-audio-recording-stream popularity was classified as not popular.
We found that react-native-audio-recording-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.