#include <microphone.h>
Definition at line 19 of file microphone.h.
◆ add_data_callback()
void esphome::microphone::Microphone::add_data_callback |
( |
std::function< void(const std::vector< int16_t > &)> && |
data_callback | ) |
|
|
inline |
◆ is_running()
bool esphome::microphone::Microphone::is_running |
( |
| ) |
const |
|
inline |
◆ is_stopped()
bool esphome::microphone::Microphone::is_stopped |
( |
| ) |
const |
|
inline |
◆ read()
virtual size_t esphome::microphone::Microphone::read |
( |
int16_t * |
buf, |
|
|
size_t |
len |
|
) |
| |
|
pure virtual |
◆ start()
virtual void esphome::microphone::Microphone::start |
( |
| ) |
|
|
pure virtual |
◆ stop()
virtual void esphome::microphone::Microphone::stop |
( |
| ) |
|
|
pure virtual |
◆ data_callbacks_
CallbackManager<void(const std::vector<int16_t> &)> esphome::microphone::Microphone::data_callbacks_ {} |
|
protected |
◆ state_
The documentation for this class was generated from the following file:
- /opt/build/esphome/esphome/components/microphone/microphone.h