0

I need to record audio and then send the recorded clip to server every 5 seconds. For example, at 5 seconds after recording started, you will send 5 seconds clip. Another 5 seconds after, it will send total 10 seconds clip from the start to the end.

How can I do?

I'm following this Android AudioRecord class - process live mic audio quickly, set up callback function

However, it's not working.

Community
  • 1
  • 1
moeseth
  • 1,855
  • 5
  • 23
  • 47

1 Answers1

-1

Assuming you don't need to send the audio in real time, why don't you record the whole audio file first, and then split it into increments of 5 seconds? You could then send all these files to the server.