woheller69 / audio-analyzer-for-android

A fork of audio-analyzer-for-android in Google code, with a lot of enhancement.
Apache License 2.0
184 stars 12 forks source link

Add output monitor #9

Closed PearKing05 closed 1 year ago

PearKing05 commented 1 year ago

This isn't so much as an issue as it is a feature request, but I feel it would be nice to monitor audio output as well as input.

woheller69 commented 1 year ago

I don't think that is possible. If someone knows, let me know

PearKing05 commented 1 year ago

It appears that you can use the visualizer class (I'm not good with JavaScript or it's vocabulary) to pick up on output audio but it says that the audio quality may be reduced

PearKing05 commented 1 year ago

As a follow up I found the class specifically is: android.media.audiofx.Visualizer

woheller69 commented 1 year ago

I think the way should be to use MediaRecorder.AudioSource.REMOTE_SUBMIX.

But Google does not want us to capture phone calls, therfore: CAPTURE_AUDIO_OUTPUT has android:protectionLevel="signature|privileged", so it can only be held by apps that are installed on the system partition or are signed by the platform signing key.

PearKing05 commented 1 year ago

Like I said I'm not a Java wizard but I do see how that's a problem. Are there any other options?

woheller69 commented 1 year ago

use a cable and connect output to input ?

flleeppyy commented 8 months ago

Any updates on this being possible? I really don't want to use some janky audio setup just to visualize system audio.

woheller69 commented 8 months ago

nothing new. Google does not want us to capture audio output

flleeppyy commented 8 months ago

Doesn't make sense though, Wavelet is a thing that takes in system audio, and that's allowed on the app store. so i don't see why this app cant.

woheller69 commented 8 months ago

Isn't that an equalizer? It does not need to capture audio then