@Faris Lemes Welcome to Microsoft Q&A Forum, Thank you for posting your query here!
In the Microsoft Speech SDK for C++, the method to set a property is SetProperty
public inline void SetProperty (PropertyId propertyID, const std::string & value);
More info here.
In the Microsoft Speech SDK, the SpeechRecognizer class has a Properties member that is a collection of properties and their values. You can use this to change the properties of the SpeechRecognizer after it has been initialized. More info here and here.
Here is an example of how you might do this in C++:
// Assuming you have a SpeechRecognizer object named recognizer
auto properties = recognizer.Properties;
properties.SetProperty(PropertyId::Speech_SegmentationSilenceTimeoutMs, "new_value");
In this code, "new_value" should be replaced with the value you want to set for the Speech_SegmentationSilenceTimeoutMs property.
Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.