mirror of
https://github.com/esphome/esphome.git
synced 2025-09-23 21:52:23 +01:00
[voice_assistant] Bugfix: Fix crash on start (#7662)
This commit is contained in:
@@ -250,7 +250,7 @@ class VoiceAssistant : public Component {
|
||||
#ifdef USE_SPEAKER
|
||||
void write_speaker_();
|
||||
speaker::Speaker *speaker_{nullptr};
|
||||
uint8_t *speaker_buffer_;
|
||||
uint8_t *speaker_buffer_{nullptr};
|
||||
size_t speaker_buffer_index_{0};
|
||||
size_t speaker_buffer_size_{0};
|
||||
size_t speaker_bytes_received_{0};
|
||||
@@ -282,8 +282,8 @@ class VoiceAssistant : public Component {
|
||||
float volume_multiplier_;
|
||||
uint32_t conversation_timeout_;
|
||||
|
||||
uint8_t *send_buffer_;
|
||||
int16_t *input_buffer_;
|
||||
uint8_t *send_buffer_{nullptr};
|
||||
int16_t *input_buffer_{nullptr};
|
||||
|
||||
bool continuous_{false};
|
||||
bool silence_detection_;
|
||||
|
Reference in New Issue
Block a user