-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[help] How to play the received data on "data" emit? #25
Comments
I figured out I should play the data using I still don't know (and don't need to) play the data on iOS. |
https://github.com/theInfiTualEr/react-native-live-audio-stream/ also addresses playing the audio recorded in Android on Web (It generates wav audio header). Still, no iOS support. |
Hello @theInfiTualEr, I'm using your version and it works fine, i can read the data with the header and play it using This is how I store the data: LiveAudioStream.on("data", data => {
RNFS.writeFile(`${ExternalCachesDirectoryPath}/test-audio-{new Date().getDate()}.wav`, data)
.then(() => console.log("wrote"))
.catch(err => console.log(err));
}); Do you happen to have any idea how one could store the contents from data and play it in other machines? |
Checkout https://github.com/goodatlas/react-native-audio-record |
I want to use this in socket, hence I don't want to export an audio file, and just want to play whatever I receive.
The text was updated successfully, but these errors were encountered: