Use a separate thread to initialize models for lazarus examples. (#1270)

So that the main thread is not blocked and the user interface is responsive.
This commit is contained in:
Fangjun Kuang
2024-08-18 14:59:48 +08:00
committed by GitHub
parent 8c087d9110
commit f93f0ca94d
7 changed files with 405 additions and 301 deletions

View File

@@ -69,7 +69,7 @@ bool SileroVadModelConfig::Validate() const {
std::string SileroVadModelConfig::ToString() const {
std::ostringstream os;
os << "SilerVadModelConfig(";
os << "SileroVadModelConfig(";
os << "model=\"" << model << "\", ";
os << "threshold=" << threshold << ", ";
os << "min_silence_duration=" << min_silence_duration << ", ";