14.2.3 8ch sound recording with TD-BD-16AD-USB

Execute demoTDBD_16ch.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. Confirm if the sound is replayed or recorded with sample software included with the device. If the sound cannot be replayed or recorded, the kernel module may not be properly set or connected so check them.

Parameters of AudioStreamFromMic are shown in Table 14.6. 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 TDBD16ADUSB in DEVICETYPE and “SINICH” in DEVICE.

Table 14.6: Parameter list of AudioStreamFromMic 

Parameter Name

Type

set value

Unit

Description

LENGTH

subnet_param 

LENGTH

[pt]

Window 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 

TDBD16ADUSB

 

Device type

DEVICE

string 

SINICH

 

Device name

This device can record 16 channel sound. In this sample, an eight channel (from 0 to 7 channel) sound are recorded by using ChannelSelector module.