Set FEATURE_API_AUDIO flag also if the speaker component is not used (#6712)

This commit is contained in:
Mischa Siekmann 2024-05-13 06:05:13 +02:00 committed by GitHub
parent a23d1631e1
commit 5ee4bf3802
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,10 +94,10 @@ class VoiceAssistant : public Component {
uint32_t get_feature_flags() const {
uint32_t flags = 0;
flags |= VoiceAssistantFeature::FEATURE_VOICE_ASSISTANT;
flags |= VoiceAssistantFeature::FEATURE_API_AUDIO;
#ifdef USE_SPEAKER
if (this->speaker_ != nullptr) {
flags |= VoiceAssistantFeature::FEATURE_SPEAKER;
flags |= VoiceAssistantFeature::FEATURE_API_AUDIO;
}
#endif
return flags;