SOX

From Alessandro's Wiki
Jump to: navigation, search

Mandare l'audio di una scheda (/dev/dsp1) a un'altra (/dev/dsp)

sox -c 2 -s -w -r 32000 -t ossdsp /dev/dsp1 -t ossdsp -w -r 32000 /dev/dsp

Forwardare L'audio in rete

elwood xunil # while [ 1 ]; do nc -l -w 10 -p 12345 | sox -t ogg - -t ossdsp /dev/dsp; done
     Input Filename : -
     Sample Size    : 16-bits
     Sample Encoding: Vorbis
     Channels       : 2
     Sample Rate    : 8000
     Comments       :
     COMMENT=Processed by SoX
[root@zombie ~]# sox -w -c 2 -t ossdsp /dev/dsp -t ogg - |  nc elwood 12345