Author Topic: Getting lost with Linux and Stdin in audio terms. Trying to use rsound.  (Read 5894 times)

0 Members and 1 Guest are viewing this topic.

Offline AdrianH

  • Jr. Member
  • **
  • Posts: 9
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Getting lost with Linux and Stdin in audio terms. Trying to use rsound.
« Reply #15 on: October 15, 2013, 11:14:25 pm »
Found a way to do it, in fact two methods after more searching of the Internet

192.168.1.69~> arecord -D plughw:0,0 -f S16_LE | ssh -C [email protected] aplay -f S16_LE

This asks for the password to access 192.168.1.65 as it works over SSH.  It uses the alsa utilities arecord and aplay

The second method that appears to work, although why I do not know yet

192.168.1.69~> arecord -D plughw:0,0 -f S16_LE | rsdplay -s 192.168.1.65
the above requires rsd running on the remote computer but does not ask for any password.

I am not sure why it works yet as I have not defined the stream as raw pcm, but I am wondering if the arecord is doing this for me?

Cheers

Adrian

Thought I would add a little bit more information to this, as a record for me and if anyone finds it interesting.

The first method using ssh has a typical network data output of 11.4 KiB/s and a typical delay of 3.5 seconds ober my own internal network.

the second method using rsdplay takes the network output to 17 KiB/s but the delay drops to less than 1 second
« Last Edit: October 16, 2013, 12:16:03 am by AdrianH »

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 479
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Getting lost with Linux and Stdin in audio terms. Trying to use rsound.
« Reply #16 on: October 16, 2013, 02:30:35 am »
Thanks for taking the time to post your solution, I'm sure it'll come in handy for someone :)
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

The Linux Community Forum

Re: Getting lost with Linux and Stdin in audio terms. Trying to use rsound.
« Reply #16 on: October 16, 2013, 02:30:35 am »

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal