You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// example from espressif: https://github.com/espressif/esp-idf/blob/release/v4.4/examples/peripherals/i2s/i2s_audio_recorder_sdcard/main/i2s_recorder_main.c
205
211
// This is an I2S PDM microphone, these microphones only use a clock and
206
212
// data line, to make it simpler to debug, use the WS pin as CLK and SD
207
213
// pin as DATA
208
214
_config.mode = i2s_mode_t(I2S_MODE_MASTER | I2S_MODE_RX | I2S_MODE_PDM); // Change mode to pdm if clock pin not provided. PDM is not supported on ESP32-S2. PDM RX not supported on ESP32-C3
215
+
_config.channel_format =I2S_CHANNEL_FMT_ONLY_LEFT; // seems that PDM mono mode always uses left channel.
216
+
//_config.use_apll = true; // experimental - use aPLL clock source to improve sampling quality
217
+
//_config.bits_per_sample = I2S_BITS_PER_SAMPLE_16BIT; // not needed
209
218
#endif
210
219
}
211
220
@@ -249,9 +258,11 @@ class I2SSource : public AudioSource {
0 commit comments