Changes between Version 80 and Version 81 of Old/Tutorials/k0SDR/Tutorial00


Ignore:
Timestamp:
Nov 30, 2007, 4:18:42 PM (17 years ago)
Author:
Joseph F. Miklojcik III
Comment:

corrected numerous problems in audio section

Legend:

Unmodified
Added
Removed
Modified
  • Old/Tutorials/k0SDR/Tutorial00

    v80 v81  
    148148To hear remote audio generated by GNURadio with the USRP:
    149149
    150 1. Tunnel from local machine to node. The default port to enable is 8000.
    151 
    152 2. Install nas
     1501. Install nasd on machine with sound hardware.
    153151
    154152{{{
     
    156154}}}
    157155
    158 and run nasd (server) on the local machine. The local machine should have a way to play sounds locally (soundcard). Start nas daemon on the local machine:
     156and run nasd on the machine with the sound making device. Start nas daemon on the local machine:
    159157
    160158{{{
    161 $ nasd :8000 -aa
     159sound$ nasd -aa
    162160}}}
    163161
    164 3. Install NAS
     162or configure nasd.conf like a sane person and run it from init.d.
     163
     1642. Install nas clients on node.
    165165
    166166{{{
    167 $ apt-get install nas
    168 $ apt-get install nas-bin
     167node$ apt-get install nas-bin
    169168}}}
    170 
    171 nas-bin package contains a lot of utility programs which names start with "au" like ''auinfo'', ''auplay''...
    172169
    173170Set system variable AUDIOSERVER
    174171
    175172{{{
    176 root@node1-1:~$ export AUDIOSERVER=<ip address of local machine>:0
     173root@node1-1:~$ export AUDIOSERVER=<sound making machine>:0
    177174}}}
    178 and run auinfo (client) on the remote machine. There should be an output describing all potential audio outputs on the local machine running nasd. Running auinfo is simply a means of checking if the remote connection is working as intended. You can also try "auplay FILE" to actually play sounds remotely.
     175and run auinfo (client) on the node. There should be an output describing all potential audio outputs on the local machine running nasd. You can also try "auplay FILE" to actually play sounds remotely.
    179176
    180 4. Modify the gnuradio audio scripts to use NAS libraries. Image "gnuradio_audio.ndz" already has modified audio blocks. Note: if you use the custom image, OSS audio is disabled.
     1774. Modify the gnuradio audio scripts to use NAS libraries.
    181178
    182 5. Run any example scripts from /gnuradio-examples/python/audio (mono_tone.py, dial_tone.py preferred). Also, any gnuradio script which outputs to audio_sink will work.
    183 
    184 Steps 1-3 are necessary for any remote audio applications that use NAS. Step 4 inserts NAS functions into the GNURadio audio block.
    185 There exists a wrapper library, libaudiooss, that takes all input to /dev/dsp and "pipes" it to NAS. Thus, conceivably, any program that outputs OSS audio can be played remotely. Examples: SoX, mpg123, ... However, libaudiooss currently does not work on the node. If it did, then step 4 could be omitted.
     1795. Run any example scripts from /gnuradio-examples/python/audio (for example, mono_tone.py, dial_tone.py). Also, any gnuradio script which outputs to audio_sink will work.
    186180
    187181http://www.orbit-lab.org/attachment/wiki/Documentation/GNURadio/gnusound.wav
    188 
    189 This is a recording of an AM station that GNURadio demodulated, downsampled, and converted to floats. NAS moved the data from the remote machine to a local machine. So, this is actually a "recording of real-time audio".
    190182
    191183== Troubleshooting ==