Is it possible to capture the playing audio with Java?
Asked Answered
K

1

2

I was wondering if it's possible to capture playing audio on the audio output hardware with a simple Java program, and then write it to an outputstream for example.

Is it?

Karmenkarna answered 23/6, 2012 at 9:42 Comment(3)
possible duplicate of In Java, how do I record the sound output that is going to the speakers?Superbomb
This was asked literally yesterday.Superbomb
Different question (at least as asked): yesterday's asks about recording what is output by the current app, this asks about recording what is going to the hardware, possibly by other apps.Cotopaxi
C
0

If your desire is to record the output of all programs to a given audio device using a java app, like audiohijackpro, the short answer is no, this is not possible without native code. It is, in fact, quite difficult to do in any language. As far as I know, no platform makes this easy.

On some environments, there is a workaround, eg, http://cycling74.com/soundflower-landing-page/, but it requires that your end user cooperate.

Cotopaxi answered 23/6, 2012 at 15:27 Comment(3)
I'm looking for a native solution but one with a command line interface. Do you know one ?Depravity
@Depravity depends on your platform and audio API. The short answer is probably not.Cotopaxi
but there are large number of softwares that are able to record speaker output, anyways, I'll keep looking.Depravity

© 2022 - 2024 — McMap. All rights reserved.