Uwe Hermann - esddsphttp://hermann-uwe.de/taxonomy/term/1883/0
enRedirecting audio to a remote host using esddsphttp://hermann-uwe.de/blog/redirecting-audio-to-a-remote-host-using-esddsp
<p>There are situations where you might want to redirect some audio you're playing on your local computer to another computer's speakers, potentially in a different room, or even anywhere on the Internet.</p>
<p>One of many possibilities to do that is to use the <a href="http://en.wikipedia.org/wiki/Enlightened_Sound_Daemon">Enlightened Sound Daemon</a> (EsoundD, or esd). It ships with a program called <strong>esddsp</strong> (apt-get install esound-clients) which can redirect various audio sources.</p>
<p>First, you have to start the esd daemon on a console on the remote host (the one which should output the audio on some speaker, for example 192.168.0.xxx) e.g. like this:</p>
<pre>
$ esd -public -nobeeps -tcp
</pre><p>
You can do this as regular user (no need to be root) if you have the proper permissions. You also need to allow connections on port 16001 in your firewall settings. Then you can redirect audio to that daemon from another computer. In this example I'm redirecting some music using various players:</p>
<pre>
$ esddsp -s 192.168.0.xxx:16001 mpg321 -o esd foo.mp3
$ esddsp -s 192.168.0.xxx:16001 mplayer -ao esd foo.mp3
$ esddsp -s 192.168.0.xxx:16001 ogg123 -d esd foo.ogg
</pre><p>
This also works fine for videos, in which case you can redirect the audio (but not video):</p>
<pre>
$ esddsp -s 192.168.0.xxx:16001 mplayer -ao esd foo.mp4
</pre><p>
For the video player <a href="http://packages.qa.debian.org/m/miro.html">Miro</a>, I've recently documented this in the Debian package's README.Debian file. Basically you have to edit <strong>~/.xine/config</strong> and enable <strong>audio.driver:esd</strong> there, then start Miro with</p>
<pre>
$ esddsp -s 192.168.0.xxx:16001 miro
</pre><p>
Audio will be emitted on the remote host, video remains on your local PC.</p>
<p>Some programs may also support esd natively, in which case esddsp is not required, e.g.</p>
<pre>
$ ogg123 -d esd -o host:192.168.0.14:16001 foo.ogg
</pre>http://hermann-uwe.de/blog/redirecting-audio-to-a-remote-host-using-esddsp#commentsaudiodaemonesdesddspesoundmirompg321mplayermusicogg123redirectvideoThu, 01 May 2008 03:03:26 +0200Uwe Hermann1313 at http://hermann-uwe.de