Run the demoOffline8ch.sh in Localization directory. You will see the output such as 14.6 in terminal and visualized locations. This script reads four 8ch sound files and visualizes the locations. Each files includes sounds from 0, 90, 180, and 270 degrees, respectively.
After you ran the script, you will find three text files in the directory, Localization000.txt, Localization090.txt, Localization180.txt and Localization270.txt. These files are the localization logs containing frame numbers and sound directions. See the format chapter in the HARK document.
If you fail to run the script, check the following things
Check if f101_000.wav, f101_090.wav, f101_180.wav and f101_270.wav are in the ../data directory. These files are simulation synthetic sounds of the 8ch sound recording audio waveforms to which impulse responses from the 0, 90, 180 and 270 degrees direction are superimposed. They are interpreted as sounds obtained in the case sounds are given to a virtual robot from each direction. Sound source localization results are not displayed without these files.
Check if the music.dat files are in the ../config directory. They are the impulse response files of a virtual robot. Sound source localization results are not displayed without these files.
This sample has ten nodes. Three nodes are in MAIN (subnet) and seven nodes are in MAIN_LOOP (iterator). MAIN (subnet) and MAIN_LOOP (iterator) are shown in Figures and . The audio waveforms which collected with AudioStreamFromWave module are analyzed in MultiFFT and sound source localization is performed in LocalizeMUSIC . It is a netwok structure in which Localization results are tracked with SourceTracker and SourceIntervalExtender , displayed in DisplayLocalization and written in files in SaveSourceLocation .
Table 14.9 summarizes the main parameters. Note that the parameter A_MATRIX, which specifies a file name of transfer function for localization made with harktool3, is crucial.
Node name |
Parameter name |
Type |
Value |
MAIN_LOOP |
LENGTH |
512 |
|
ADVANCE |
160 |
||
SAMPLING_RATE |
16000 |
||
A_MATRIX |
ARG2 |
||
FILENAME |
ARG3 |
||
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 |