Re: batchfile for setting up SoX for Mikrophone-->---LAN--------Soundcard realtime audio-transmission

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Apr 25 15:54:13, dipl-ing.ludwig@xxxxxxxxxxx wrote:
> Am 24.04.2021 um 20:31 schrieb Jan Stary:
> > On Apr 22 21:13:48, sox-users@xxxxxxxxxxxxxxxxxxxxx wrote:
> > > I would like to use SoX for this scenario
> > > me speaking ----->  inbuild micrphone of my tablet (Windows 10)
> > > ---------->----------LAN------->---------second
> > > PC----->------soundcard---->----Amplifier------>Speaker ----> my words as
> > > *realtime* audio
> > I don't think this is a sox problem: any other audio application
> > will have to fit into that scenario similarly.
> > 
> > > If I understand right I have to setup IP-adresses and ports.
> > Well, obviously, if you want to send data over LAN.
> > This has nothing to do with SoX.
> > 
> > > Is there somewhere a collection of batch-files or a parameterlists
> > > that show which parameters and options I have to use for this?
> > No.
> > 
> > I you just want to send the audio unchanged to another machine,
> > SoX might not even be the tool for you: you just need one machine
> > to record, and send the data to the other machine (as you would
> > send any other data), and have the other machine play it back.
> > 
> > It this wasn't windows, I would put a one-liner here
> > that does exactly that.
> > 
> > Jan
> I have found this website
> https://www.streamingmediaglobal.com/Articles/Editorial/Featured-Articles/DIY-Rudimentary-Audio-Streaming-124222.aspx?utm_source=dlvr.it&utm_medium=feed&utm_campaign=iti%20roundup
> 
> Which shows how to do it with SoX. But it seems a description for how to do
> it on Linux-machines

Surprise: rec | nc

rec reads from a device and writes to stdout;
netcat reads from stdin and writes to a socket;
the opposite happens on the other end: nc | play.

On systems that have standard tools for fundamental things
(such as: read your input and send it down a network socket)
this is indeed a one-liner. But you are on windows;
maybe windows also has a netcat, I don't know.

Also note that this is not specific to SoX:
it could be arec/aplay with ALSA, or aucat/aucat on OpenBSD,
or any other program capable of recording/playback.

	Jan



_______________________________________________
Sox-users mailing list
Sox-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sox-users




[Index of Archives]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux