Mahdi Moqadasi
Mahdi Moqadasi

Reputation: 2479

How can I record audio and play that as reverse order?

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:

Help me!!

Upvotes: 0

Views: 1263

Answers (1)

user11040475
user11040475

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

Related Questions