1#ifndef TKJHAT_MICROPHONE_H
2#define TKJHAT_MICROPHONE_H
27#include "microphone/pico/pdm_microphone.h"
Microphone(uint8_t dataPin, uint8_t clkPin)
Construct a new Microphone object.
int start()
Start capturing audio samples.
int begin()
Initialize the PDM MEMS microphone.
void setCallback(pdm_samples_ready_handler_t handler)
Set a callback function to be called when new samples are ready.
int getSamples(int16_t *buffer, size_t samples)
Read PCM samples from the microphone buffer.
void stop()
Stop capturing audio samples.