14.2.2 Windows

14.2.2.1 4ch Sound Recording with DS-based devices

Execute demoDS_4ch.sh in the RecordWin directory. After the execution, one 4ch file rec_all_0.wav and two monaural files rec_each_0.wav, rec_each_1.wav are generated. When replaying these files, the recorded content can be confirmed.

Recording cannot be performed well, perform the following checks.

  1. 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.

  2. The microphones are properly connected. Confirm if the plugs are not unplugged or loosened and connect them properly.

  3. Check if the microphone terminals of the computer accept plug in power. If they do not accept plug in power, it is necessary to supply a power to the microphones. For battery type microphones, set batteries and switch on. For battery box type microphones, connect battery boxes and switch on.

  4. When more than two audio interfaces are connected, remove audio interfaces after the second ones before recording the sound.

  5. When you use Kinect, you must install a drive in advance.

Parameters of AudioStreamFromMic are shown in Table 14.7. In this node, designate a sound recording device. Designate a sound recording device in this node. In this demo, the number of sound recording channels is 4ch so that a lot of users can check the operation, and DS is designated for DEVICETYPE and Kinect is designated for DEVICE.

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 

4

[ch]

Number of sound recording channel

SAMPLING_RATE

subnet_param 

16000

[Hz]

Sampling frequency

DEVICETYPE

string 

DS

 

Device type

DEVICE

string 

Kinect

 

Device name

14.2.2.2 8ch sound recording with RASP24

Execute demoRASP24_8ch.n in the RecordLin 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.6.