void trigger(const Ts &...x) ESPHOME_ALWAYS_INLINE
Reuses one vector so x stays valid in automations with a delay.
DataTrigger(Microphone *parent)
std::vector< uint8_t > data_
void add_data_callback(F &&data_callback)
Callbacks take (const AudioCapture &) and run on the microphone's task.
std::span< const uint8_t > data
Only valid during the callback.