react-native-audio-stream
Allows to send base64 audio streams.
Installation
npm i @apardellass/react-native-audio-stream
Usage
import AudioStream from "react-native-audio-stream";
const listener = AudioStream.addListener(data => console.log(data));
AudioStream.init({
bufferSize: 4096,
sampleRate: 44100,
bitsPerChannel: 16,
channelsPerFrame: 1,
});
AudioStream.start();
...
AudioStream.stop();
listener.remove();
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT