基本功能正常,需要解决首次双击没有效果,首次对话没有反应

This commit is contained in:
CSBOOK\44744
2026-06-27 10:50:29 +08:00
parent 0635bd17f7
commit 6aaf13d0a8
7 changed files with 80 additions and 168 deletions
@@ -18,6 +18,7 @@
#include "esp_err.h"
#include "esp_heap_caps.h"
#include "esp_log.h"
#include "esp_timer.h"
#include "esp_opus_dec.h"
#include "esp_opus_enc.h"
#include "freertos/FreeRTOS.h"
@@ -232,7 +233,6 @@
#define MULTIMODAL_PCM_SAMPLE_BYTES 2U
#define MULTIMODAL_MIN_DECODER_PCM_BUFFER_BYTES 2048U
#define MULTIMODAL_DECODER_BUFFER_GUARD_BYTES 512U
#define MULTIMODAL_AUDIO_DOWNSTREAM_IDLE_MUTE_TASK_STACK_BYTES 4096U
#define MULTIMODAL_AUDIO_DOWNSTREAM_TX_BOUNCE_BYTES 3200U
#define MULTIMODAL_AUDIO_DEFAULT_MIC_CHANNEL ((uint8_t)CONFIG_MULTIMODAL_AUDIO_MIC_CHANNEL)
@@ -273,7 +273,6 @@ typedef struct {
uint8_t *downstream_tx_bounce_buf;
size_t downstream_tx_bounce_buf_bytes;
uint32_t downstream_playback_generation;
uint32_t downstream_audio_activity_generation;
volatile bool downstream_decoder_reset_pending;
bool downstream_playback_in_progress;
bool downstream_output_muted;
@@ -281,8 +280,7 @@ typedef struct {
bool downstream_output_primed;
bool downstream_response_active;
bool downstream_response_end_received;
TaskHandle_t downstream_idle_mute_task;
bool downstream_idle_mute_stop_requested;
esp_timer_handle_t downstream_idle_mute_timer;
QueueHandle_t downstream_playback_queue;
bool downstream_playback_queue_with_caps;
TaskHandle_t downstream_playback_task;