Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Capture All Audio Going to Speakers [closed]

Tags:

android

In Android, is there a way to capture all of the audio going to the speakers(or headphones) and save it, to a file for example? For the app I am making, it would be a nice feature if I could pipe all of the sound somewhere else. I saw this but I wouldn't want to have to have users to have a custom ROM to use the feature. Root access won't be a problem. Is it possible? If so, how?

like image 256
user1132959 Avatar asked Nov 12 '22 00:11

user1132959


1 Answers

You cannot do that without providing a custom operating system. Root access wouldn't help, since the suitable API call to AudioFlinger does not exist.

like image 163
Phonon Avatar answered Nov 15 '22 02:11

Phonon