Andrew J.Swan
Andrew J.Swan
@kahrendt I changed it `microphone::MicrophoneSource *microphone_{nullptr};` на `microphone::Microphone *microphone_{nullptr};` But how can I automatically get the microphone class in the configuration now? It was like this before: ```python mic =...
Do I understand correctly that I need to extend `CONFIG_SCHEMA` something like this: ```python MUSIC_LEDS_SCHEMA = cv.Schema( { ... }, ).extend( { cv.GenerateID(CONF_MIC_ID): cv.use_id(microphone.Microphone), } ) ``` And then in...
> Correct, I would recommend against going around the MicrophoneSource class since it was created for this exact purpose. I was just answering how you can still get the raw...
There is no data at all. I'll try to analyze and debug.
Callback https://github.com/andrewjswan/esphome-components/blob/ee5a05380864a8fd3ce81db2309d225b8f63190f/components/music_leds/music_leds.cpp#L23-L29 Allocate https://github.com/andrewjswan/esphome-components/blob/ee5a05380864a8fd3ce81db2309d225b8f63190f/components/music_leds/music_leds.cpp#L176-L202 Get data https://github.com/andrewjswan/esphome-components/blob/ee5a05380864a8fd3ce81db2309d225b8f63190f/components/music_leds/music_leds.cpp#L92-L107
@kahrendt Judging by this comment: https://github.com/esphome/esphome/blob/430f63fcbb9e97681161709a51f5b02f353f73e0/esphome/components/sound_level/sound_level.cpp#L97-L98 ```cpp // MicrophoneSource always provides int16 samples due to Python codegen settings const int16_t *audio_data = reinterpret_cast(this->audio_buffer_->get_buffer_start()); ``` The samples in ESPHome are only...
> Sorry, I haven't had an opportunity to look at your code yet. No problem, thank you very much.
I don't understand anything, when starting, data from the microphone goes, and then stops, the buffer is empty. It feels like I'm missing something. Although I already redid it the...
I can't figure out what the problem is, if I set the channel to the right, then the maximum level in a quiet room, if the left, then the minimum,...
I don’t understand anything, at the start there is some data, and then it goes to 0 and doesn’t respond to any sounds. I've already tried everything and rewritten it...