Reputation: 2479
I want to build an android app that records a voice and play reversed version of that. I searched everywhere and there is these links:
First: that describes without any code that makes me confusing!
Second: with no answers until now!
Third: is a working code for swift
Forth: a working way in java. Not android!
Fifth: I'm not sure it is thr solution.
Sixth: I compiled it and changed it but it stops suddenly in recording.
Seventh: For swift there is AVFoundation
.
Eighth: Not working.
Help me!!
Upvotes: 0
Views: 1263
Reputation:
You must record audio as raw with AudioRecord
instead of MediaRecorder
which uses encoder to compress and change the output. When you recorded PCM file, you can add 44Byte Header to it, to be converted to Wav format and be playable in devices.
If you want reverse it, should use a loop to read Bytes of it (if use PCM16 must use 2Byte) and after that add header and play it.
Good Luck.
Upvotes: 1