|
@@ -842,10 +842,12 @@ void Application::SetDeviceState(DeviceState state) {
|
|
|
display->SetEmotion("neutral");
|
|
display->SetEmotion("neutral");
|
|
|
ResetDecoder();
|
|
ResetDecoder();
|
|
|
vTaskDelay(pdMS_TO_TICKS(1000));//这里的延迟可以避免音频处理芯片异常时候,导致程序崩溃。但是还是没解决音频异常后的处理。
|
|
vTaskDelay(pdMS_TO_TICKS(1000));//这里的延迟可以避免音频处理芯片异常时候,导致程序崩溃。但是还是没解决音频异常后的处理。
|
|
|
- opus_encoder_->ResetState();
|
|
|
|
|
|
|
+ if (!lintening_flag_){
|
|
|
|
|
+ opus_encoder_->ResetState();
|
|
|
#if CONFIG_USE_AUDIO_PROCESSOR
|
|
#if CONFIG_USE_AUDIO_PROCESSOR
|
|
|
- audio_processor_.Start();
|
|
|
|
|
|
|
+ audio_processor_.Start();
|
|
|
#endif
|
|
#endif
|
|
|
|
|
+ }
|
|
|
UpdateIotStates();
|
|
UpdateIotStates();
|
|
|
if (previous_state == kDeviceStateSpeaking) {
|
|
if (previous_state == kDeviceStateSpeaking) {
|
|
|
// FIXME: Wait for the speaker to empty the buffer
|
|
// FIXME: Wait for the speaker to empty the buffer
|