Skip to content

chadsmith/react-native-microphone-stream

 
 

Repository files navigation

react-native-microphone-stream

React Native module used for two-way audio

Install

$ npm i git://github.com/chadsmith/react-native-microphone-stream.git
$ react-native link react-native-microphone-stream

Usage

import MicStream from 'react-native-microphone-stream';

const listener = MicStream.addListener(data => console.log(data));
MicStream.init({
  bufferSize: 4096,
  sampleRate: 44100,
  bitsPerChannel: 16,
  channelsPerFrame: 1,
});
MicStream.start();
...
MicStream.stop();
listener.remove();

About

React Native audio recording module for two-way audio

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 57.6%
  • Objective-C 34.7%
  • Ruby 4.2%
  • JavaScript 3.5%