Description
The upper limit for both EndSilenceTimeout and EndSilenceTimeoutAmbiguous is supposed to be 100 seconds based upon the resource "EndSilenceOutOfRange". However, it looks like a '0' was missed, and the upper limit is actually 10 seconds.
Reproduction Steps
- Create a
SpeechRecognitionEngine object
- Set
SpeechRecognitionEngine.EndSilenceTimeout to a value greater than 10 seconds
ArgumentOutOfRangeException is thrown
Expected behavior
A ArgumentOutOfRangeException is only thrown if the provided TimeSpan is greater than 100 seconds.
Actual behavior
A ArgumentOutOfRangeException is thrown if the provided TimeSpan is greater than 10 seconds.
Regression?
This is not a regression. I tested this on .NET Framework 4.8 and the issue was there as well.
Known Workarounds
The only work around is to use a TimeSpan that is 10 seconds or less.
Configuration
- Which version of .NET is the code running on?
- What OS and version, and what distro if applicable?
- Windows 10 Pro v21H1 OS build 19043.2130
- What is the architecture (x64, x86, ARM, ARM64)?
- Do you know whether it is specific to that configuration?
Other information
No response