14.2.4 8ch sound recording with RASP24

Execute demoRASP24_8ch.n in the Record directory. After the execution, one file rec_all_0.wav and eight monaural files rec_each_0.wav, rec_each_1.wav, ..., rec_each_7.wav are generated. When replaying these files, the recorded content can be confirmed.

When recording cannot be performed well, perform the following checks.

  1. Check if the microphones are properly connected. Check if the plugs are not unplugged or loosened and connect them properly.

  2. The network connection is established with the IP address of RASP24. Check the network connection with ping.

  3. A correct IP address of RASP24 is set to AudioStreamFromMic .

  4. Confirm if the sound is replayed or recorded with software other than HARK. If the sound cannot be replayed or recorded, the OS and driver, and audio interface may not be properly set or connected so check them.

Parameters of AudioStreamFromMic are shown in Table 14.7. RASP24 can record sound with 16 bit or 32 bit. When perform 16 bit and 32 bit recording, use RASP24-16 and RASP24-32, separately. Designate a sound recording device in this module. Designate a multi-channel sound recording device. Set 16ch to the number of sound recording channel and IP address in DEVICE. In order to execute the sample, it is necessary to change the address to that of the actual radio RASP24.

Note that a parameter GAIN is added when RASP24 is used as shown in Figure 14.5.

Table 14.7: Parameter list of AudioStreamFromMic 

Parameter name

type

Set value

Unit

Description

LENGTH

subnet_param 

LENGTH

[pt]

FFT length

ADVANCE

subnet_param 

ADVANCE

[pt]

Shift length

CHANNEL_COUNT

int 

16

[ch]

Number of sound recording channel

SAMPLING_RATE

subnet_param 

16000

[Hz]

Sampling frequency

DEVICETYPE

string 

RASP24-16

 

Device type

GAIN

string 

0dB

 

GAIN

DEVICE

string 

127.0.0.1

 

Device name

When a user set GAIN parameter, be careful about clipping.

\includegraphics{fig/recipes/demo-Record-RASP24.png}
Figure 14.5: Additional parameter for RASP24