SpeechRecognitionEngine.EndSilenceTimeoutAmbiguous 属性


获取或设置 SpeechRecognitionEngine 将在终结识别操作之前,于二义性输入末尾接受的无声段间隔。Gets or sets the interval of silence that the SpeechRecognitionEngine will accept at the end of ambiguous input before finalizing a recognition operation.

 property TimeSpan EndSilenceTimeoutAmbiguous { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan EndSilenceTimeoutAmbiguous { get; set; }
member this.EndSilenceTimeoutAmbiguous : TimeSpan with get, set
Public Property EndSilenceTimeoutAmbiguous As TimeSpan


安静间隔的持续时间。The duration of the interval of silence.


将属性设置为小于 0 秒或大于 10 秒。This property is set to less than 0 seconds or greater than 10 seconds.


如果识别输入不明确,语音识别器将使用此超时间隔。The speech recognizer uses this timeout interval when the recognition input is ambiguous. 例如,对于支持识别 "新游戏" 或 "新游戏" 的语音识别语法,"新游戏" 是一种明确的输入,"新游戏" 是一种不明确的输入。For example, for a speech recognition grammar that supports recognition of either "new game please" or "new game", "new game please" is an unambiguous input, and "new game" is an ambiguous input.

此属性确定在完成识别操作之前,语音识别引擎将等待额外输入的时间。This property determines how long the speech recognition engine will wait for additional input before finalizing a recognition operation. 超时间隔可以是0秒到10秒(含)。The timeout interval can be from 0 seconds to 10 seconds, inclusive. 默认值为500毫秒。The default is 500 milliseconds.

若要设置明确输入的超时间隔,请使用EndSilenceTimeout属性。To set the timeout interval for unambiguous input, use the EndSilenceTimeout property.