Node's Play Mate

    react-native-recording

    0.5.1 • Public • Published

    react-native-recording npm version

    React Native audio recording module used for DSP with Android + iOS

    Install

    $ npm i react-native-recording
    $ react-native link react-native-recording
    

    Usage

    import { PermissionsAndroid } from "react-native";
    import Recording from "react-native-recording";
     
    await PermissionsAndroid.requestMultiple([
      PermissionsAndroid.PERMISSIONS.RECORD_AUDIO,
    ]);
     
    Recording.init({
      bufferSize: 4096,
      sampleRate: 44100,
      bitsPerChannel: 16,
      channelsPerFrame: 1,
    });
     
    const listener = Recording.addRecordingEventListener((data) =>
      console.log(data)
    );
     
    Recording.start();
     
    // stop recording
    Recording.stop();
    listener.remove();

    Install

    npm i react-native-recording

    DownloadsWeekly Downloads

    21

    Version

    0.5.1

    License

    MIT

    Unpacked Size

    18.8 kB

    Total Files

    13

    Last publish

    Collaborators

    • 7c00