Try to use the microphone array of Matrix Creator via JS, noticed the below JS testing code on github, but Any idea of the right configurations for these settings? many thanks

// setup gain for all microphones
micarray_cfg.set_gain(32)

// setup a sound source perpendicular to the MATRIX Creator
micarray_cfg.set_azimutal_angle(0)
micarray_cfg.set_polar_angle(0)
micarray_cfg.set_radial_distance_mm(1000)
micarray_cfg.set_sound_speed_mmseg(341 * 1000)

I would also like to get here some more information about these values

Got this response from Matrix team in Raspberry Pi Stack Exchange community.

// Microphone Array params
message MicArrayParams {
// gain for all microphones
int32 gain = 1;

// Spherical coordinates for beamforming (azimutal_angle,
// polar_angle, radial_distance_mm).
//
// azimutal angle (must lie between -pi/2 an pi/2)
float azimutal_angle = 2;

// polar angle (must lie between -pi/2 an pi/2)
float polar_angle = 3;

// distance from the center of the MATRIX Creator to the sound source.
float radial_distance_mm = 4;

// sound speed in mm/seg
float sound_speed_mmseg = 5;
}

From:

```
/*
* Copyright 2016-2017 Matrix Labs
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
syntax = "proto3";
package matrix_malos;
```

This file has been truncated. show original

1 Like

Found this pic, not sure how to apply it on the mics of Matrix Creator,