In prior to running the script, you need to configure the wireless RASP first. Edit the network file demoWS8ch.n and set the IP address to your RASP’s one. The default value is 127.0.0.1. Next, configure the FPAA (firmware) of you RASP. See the manual of RASP for details.
After these preparations, run the script demoWS8ch.sh. You will see the outputs shown in Figure 14.3.2 and visualized sound locations.
If you have problem on localization, check the path or the validity of your music.dat. Refer to Localization failed for details.
Eight modules are included in this sample. There is one module in MAIN (subnet) and are seven modules in MAIN_LOOP (iterator). MAIN (subnet) and MAIN_LOOP (iterator) are shown in Figures and 14.11. Channels used for the audio waveforms collected with the AudioStreamFromMic module in ChannelSelector are selected and they are converted into spectral representation in MultiFFT , and MUSIC spectra are obtained in LocalizeMUSIC . Next, peaks of the MUSIC spectra are obtained in SourceTracker and tracking is performed based on the continuity with a peak of the former processing time. SourceIntervalExtender is processing to extend the start time of the sound source to the past. Finally, sound source localization results are displayed in DisplayLocalization .
Table 14.10 summarizes the main parameters.
Node name |
Parameter name |
Type |
Value |
MAIN_LOOP |
LENGTH |
512 |
|
ADVANCE |
160 |
||
SAMPLING_RATE |
16000 |
||
A_MATRIX |
ARG1 |
||
DOWHILE |
(empty) |
||
NUM_CHANNELS |
8 |
||
LENGTH |
LENGTH |
||
SAMPLING_RATE |
SAMPRING_RATE |
||
A_MATRIX |
A_MATRIX |
||
PERIOD |
50 |
||
NUM_SOURCE |
1 |
||
MIN_DEG |
-180 |
||
MAX_DEG |
180 |
||
LOWER_BOUND_FREQUENCY |
500 |
||
HIGHER_BOUND_FREQUENCY |
2800 |
||
DEBUG |
false |