forked from xiaozhi/xiaozhi-esp32
v1.7.1: fix send audio (#771)
* screen -> display * Add AUDIO_CODEC_DEFAULT_MIC_GAIN * WebRTC -> NSNet * fix: send audio priority
This commit is contained in:
@@ -25,8 +25,8 @@ void AfeAudioProcessor::Initialize(AudioCodec* codec) {
|
||||
srmodel_list_t *models = esp_srmodel_init("model");
|
||||
char* ns_model_name = esp_srmodel_filter(models, ESP_NSNET_PREFIX, NULL);
|
||||
|
||||
afe_config_t* afe_config = afe_config_init(input_format.c_str(), NULL, AFE_TYPE_VC, AFE_MODE_HIGH_PERF);
|
||||
afe_config->aec_mode = AEC_MODE_VOIP_HIGH_PERF;
|
||||
afe_config_t* afe_config = afe_config_init(input_format.c_str(), NULL, AFE_TYPE_VC, AFE_MODE_LOW_COST);
|
||||
afe_config->aec_mode = AEC_MODE_VOIP_LOW_COST;
|
||||
afe_config->vad_mode = VAD_MODE_0;
|
||||
afe_config->vad_min_noise_ms = 100;
|
||||
afe_config->ns_init = true;
|
||||
|
||||
@@ -48,12 +48,10 @@ void EspWakeWord::OnWakeWordDetected(std::function<void(const std::string& wake_
|
||||
}
|
||||
|
||||
void EspWakeWord::StartDetection() {
|
||||
ESP_LOGI(TAG, "Start wake word detection");
|
||||
xEventGroupSetBits(event_group_, DETECTION_RUNNING_EVENT);
|
||||
}
|
||||
|
||||
void EspWakeWord::StopDetection() {
|
||||
ESP_LOGI(TAG, "Stop wake word detection");
|
||||
xEventGroupClearBits(event_group_, DETECTION_RUNNING_EVENT);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user