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:
@@ -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 << ", ";
|
||||
|
||||
Reference in New Issue
Block a user