-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can i set silence duration at end of speech ? #131
Comments
or is there some config for EndSilenceTimeout ? |
Currently it is not directly possible to specify silence timeout via SDK APIs. As a workaround, you can use FromEndpoint call to create a SpeechConfig and specifying the endping URL with query parameters: Please note to replace YourServiceRegion with the name of service region associated with your subscription key, like westus. And the value for initialSilenceTimeoutMs and endSilenceTimeoutMs is in millisecond. We will add methods in API to allow users to configure initial and end silence timeout in the future release. |
ok ,I will try SpeechConfig. thanks very much. |
@zhouwangzw Any update regarding the silence timeout via SDK APIs? Is that already available? |
There is a 'SetProperty' method on the config which was added to the SDK to allow you to set parameters to the request This way you can set the EndSilenceTimeout (PropertyIDs in C#: thx |
It seems that the default silence duration is 2s , it means that after 2 second silence, silence detected will be triggered. BUT on some cases, we need a shorter threshold for it, for example , 1s or 600ms for it.
I will C++ SDK ,but i failed to find a interface to set it. I only found that
for NoMatchCode
Is there such a interface ? or if this feature will be supported in the coming release ? or existed already in SDK of other languages ?
The text was updated successfully, but these errors were encountered: