qiuxiang / react-native-recording

React Native audio recording module used for DSP with Android + iOS
MIT License
110 stars 62 forks source link

How to play recorded audio on another device in realtime? #9

Open niocncn opened 6 years ago

niocncn commented 6 years ago

Hello, how can implement playing of recorded audio on another device, I want to send array through the socket connection.

navrajkambo commented 6 years ago

You would probably send the data in chunks, and then need some way of encoding the samples on the receiver device (wav or mp3 encorder) for playback using the expo library, or some other package. I haven't been able to find a way to encode the samples to a usable format for playback, but you might have better luck? Sending the information shouldn't be a problem, as long as you can establish a connection.

navrajkambo commented 6 years ago

Not sure if you're still having this problem, but i'm working on a package that will save audio data coming from an array. It's not quite finished, but i've made some headway with android, and hope to finish iOS some time this week. You can check out the project home page for more details... https://github.com/navrajkambo/RNSaveAudio