Changes between Version 80 and Version 81 of Old/Tutorials/k0SDR/Tutorial00
- Timestamp:
- Nov 30, 2007, 4:18:42 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Old/Tutorials/k0SDR/Tutorial00
v80 v81 148 148 To hear remote audio generated by GNURadio with the USRP: 149 149 150 1. Tunnel from local machine to node. The default port to enable is 8000. 151 152 2. Install nas 150 1. Install nasd on machine with sound hardware. 153 151 154 152 {{{ … … 156 154 }}} 157 155 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:156 and run nasd on the machine with the sound making device. Start nas daemon on the local machine: 159 157 160 158 {{{ 161 $ nasd :8000-aa159 sound$ nasd -aa 162 160 }}} 163 161 164 3. Install NAS 162 or configure nasd.conf like a sane person and run it from init.d. 163 164 2. Install nas clients on node. 165 165 166 166 {{{ 167 $ apt-get install nas 168 $ apt-get install nas-bin 167 node$ apt-get install nas-bin 169 168 }}} 170 171 nas-bin package contains a lot of utility programs which names start with "au" like ''auinfo'', ''auplay''...172 169 173 170 Set system variable AUDIOSERVER 174 171 175 172 {{{ 176 root@node1-1:~$ export AUDIOSERVER=< ip address of localmachine>:0173 root@node1-1:~$ export AUDIOSERVER=<sound making machine>:0 177 174 }}} 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.175 and 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. 179 176 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.177 4. Modify the gnuradio audio scripts to use NAS libraries. 181 178 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. 179 5. 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. 186 180 187 181 http://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".190 182 191 183 == Troubleshooting ==