Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

not record to a file #5

Open
diwu86 opened this issue Jul 18, 2018 · 7 comments
Open

not record to a file #5

diwu86 opened this issue Jul 18, 2018 · 7 comments

Comments

@diwu86
Copy link

diwu86 commented Jul 18, 2018

Hi this is not an issue. I am wondering whether I can only listen to the mic but not save it to a file. Basically I want to use

AudioRecord.on('data', data => {
  // base64-encoded audio data chunks
}); 

without save the file to my phone. Is it possible? Thanks

@vinayr
Copy link
Contributor

vinayr commented Jul 19, 2018

@diwu86 this is not possible at the moment. You can just ignore the file. Does saving audio to file cause any issue?

@diwu86
Copy link
Author

diwu86 commented Jul 19, 2018

No. Saving file is working fine. I have to stop and re-start cause I don't want to make the file too big.

@brycepavey
Copy link

@diwu86 how are you playing/storing the data from the chunks?

@kolnogorov
Copy link

And how can i delete the file after the recording?

@maxckelly
Copy link

Was wondering if anyone has been able to do this? We're uploading chunks to our server and processing into a file there. We have experienced a number of crashes on two devices with 32gb and 23gb available. One crashing at around 90mins or recording and another around 70mins.

Package is great though thank you for your hard work!

@brycepavey
Copy link

@maxckelly a colleague of mine implemented a circular buffer forked from this repo for an app we developed for this purpose.
It was a while ago so I can’t remember exactly the specifics of the implementation, you’ll have to look through the commit history to figure it out as we didn’t document any of it but hopefully it’s enough to get you going.
https://github.com/dreamwalk-os/react-native-audio-record

@jecs89
Copy link

jecs89 commented Oct 18, 2022

I could get not record to a file, commenting these lines in java file: RNAudioRecordModule.java
//saveAsWav();
//stopRecordingPromise.resolve(outFile);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants