Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jul 2020 17:02:34 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Aryeh Friedman <aryeh.friedman@gmail.com>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>, freebsd-java@freebsd.org
Subject:   Re: Allowing remote java app to access local sound system
Message-ID:  <20200701170234.9f6fa6dd.freebsd@edvax.de>
In-Reply-To: <CAGBxaXm6%2BpSv3_F2kPsDqZe1ixY348=dg8TPstCA9F04yr3qXQ@mail.gmail.com>
References:  <CAGBxaXm6%2BpSv3_F2kPsDqZe1ixY348=dg8TPstCA9F04yr3qXQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 1 Jul 2020 08:43:45 -0400, Aryeh Friedman wrote:
> I have a (java) app that works fine on a remote host and displays it's GUI
> by setting the DISPLAY environment variable.   The app also requires a
> working microphone (and other audio output devices). Is there any way to
> make it use the microphone/audio output on my local machine?   Note I
> suspect I would need to do this transparently to Java.  I am pretty sure
> Java has no idea how to do this on its own.

In the past, I had a similar question, titled "Audio for SSH and VNC"
in October 2019. Maybe the following answers provide some inspiration?




On Thu, 17 Oct 2019 00:10:00 -0400, Derek Schrock wrote:
> On Wed, Oct 16, 2019 at 10:44:50PM EDT, Polytropon wrote:
> > In order to extend the classic "remote desktop" concept
> > in FreeBSD - here: SSH in combination with tigervnc-server
> > and ssvnc-gui -, what is a good way to also transmit audio?
> > For example, if you start a video player or a web browser
> > with video and audio content, you can _see_ it on your remote
> > system, while the audio is playing on the distant server.
> > Is there an easy way to also get the audio to the remote
> > system where it can be _heared_?
> >=20
> >=20
> I've done this before via tunneling puslseaudio over ssh.
> However, it would be easier to just use xrdp via net/xrdp
> and audio/pulseaudio-module-xrdp.





On Thu, 17 Oct 2019 13:18:00 +0100, Dave B via freebsd-questions wrote:
> Look up a program called Seren.
>=20
> The sources build just fine on modern Linux's, and possibly FreeBSD,
> though I've not tried the latter.
>=20
> =A0=A0=A0 http://holdenc.altervista.org/seren/=A0=A0 It's a non GUI tool,=
 running
> in a command line terminal, so very low CPU usage.=A0
>=20
> (Pulse is good, but not exactly low impact.)
>=20
> Seren was I think intended for gamers, many to many etc, but works point
> to point just fine, and with very good quality audio.
>=20
> It streams via UDP, as such wont travel over SSH, but OpenVPN works
> well, if you only want one connection, else Seren can handle its own
> encryption for the audio traffic.=A0 Though how "secure" that is, I don't
> know.=A0 I move off default ports and hide "somewhere else" up in the
> high-port space.
>=20
> There is a simple text messaging facility too.
>=20
> No affiliation, just a very happy user for remote ham radio needs.



--=20
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200701170234.9f6fa6dd.freebsd>