14.2.2 8ch sound recording with radio RASP

Execute demoWS_8ch.sh in a Record directory, after setting several items. Although 127.0.0.1 is designated as an IP address of the radio RASP in demoWS_8ch.n, it is necessary to change this to an appropriate IP address. If configuration of FPAA for the radio RASP is not completed yet, complete it here. See the document of radio RASP for the method to execute ws_fpaa_config. 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 RASP. Check the network connection with ping.

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

  4. Initialization of FPAA of RASP is completed.

  5. 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.5. Designate a sound recording device in this module. Designate a multi-channel sound recording device. Set 16ch to the number of sound recording channel, designate WS, which indicates radio RASP, in DEVICETYPE and an IP address in DEVICE. In order to execute the sample, it is necessary to change the address to that of the actual radio RASP.

Note that when WS is used, CHANNEL_COUNT must be 16. Therefore, when a user want to record eight channel sound with WS, use ChannelSelector to select eight channels from 16 channels. In this sample, from 0 to 7 channels are selected.

Table 14.5: 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 channels for sound recording

SAMPLING_RATE

subnet_param 

16000

[Hz]

Sampling frequency

DEVICETYPE

string 

WS

 

Device type

DEVICE

string 

127.0.0.1

 

Device name