forked from xiaozhi/xiaozhi-esp32
bump to 0.9.4
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
# CMakeLists in this exact order for cmake to work correctly
|
# CMakeLists in this exact order for cmake to work correctly
|
||||||
cmake_minimum_required(VERSION 3.16)
|
cmake_minimum_required(VERSION 3.16)
|
||||||
|
|
||||||
set(PROJECT_VER "0.9.3")
|
set(PROJECT_VER "0.9.4")
|
||||||
|
|
||||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||||
project(xiaozhi)
|
project(xiaozhi)
|
||||||
|
|||||||
@@ -411,9 +411,11 @@ void Application::OutputAudio() {
|
|||||||
std::unique_lock<std::mutex> lock(mutex_);
|
std::unique_lock<std::mutex> lock(mutex_);
|
||||||
if (audio_decode_queue_.empty()) {
|
if (audio_decode_queue_.empty()) {
|
||||||
// Disable the output if there is no audio data for a long time
|
// Disable the output if there is no audio data for a long time
|
||||||
auto duration = std::chrono::duration_cast<std::chrono::seconds>(now - last_output_time_).count();
|
if (chat_state_ == kChatStateIdle) {
|
||||||
if (duration > max_silence_seconds) {
|
auto duration = std::chrono::duration_cast<std::chrono::seconds>(now - last_output_time_).count();
|
||||||
codec->EnableOutput(false);
|
if (duration > max_silence_seconds) {
|
||||||
|
codec->EnableOutput(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user