SpeechRecognitionEngine.RecognizerAudioPosition 属性

定义

获取在处理的音频输入中的 SpeechRecognitionEngine 当前位置。Gets the current location of the SpeechRecognitionEngine in the audio input that it is processing.

public:
 property TimeSpan RecognizerAudioPosition { TimeSpan get(); };
public TimeSpan RecognizerAudioPosition { get; }
member this.RecognizerAudioPosition : TimeSpan
Public ReadOnly Property RecognizerAudioPosition As TimeSpan

属性值

TimeSpan

识别器的位置在处理音频的输入。The position of the recognizer in the audio input that it is processing.

注解

音频位置特定于每个语音识别器。The audio position is specific to each speech recognizer. 输入流的零值在启用后建立。The zero value of an input stream is established when it is enabled.

RecognizerAudioPosition属性引用 SpeechRecognitionEngine 对象在其音频输入中的位置。The RecognizerAudioPosition property references the SpeechRecognitionEngine object's position within its audio input. 与此相反,该 AudioPosition 属性将引用输入设备在其生成的音频流中的位置。By contrast, the AudioPosition property references the input device's position in its generated audio stream. 这些位置可能不同。These positions can be different. 例如,如果识别器收到了尚未生成识别结果的输入,则该属性的值 RecognizerAudioPosition 小于属性的值 AudioPositionFor example, if the recognizer has received input for which it has not yet generated a recognition result then the value of the RecognizerAudioPosition property is less than the value of the AudioPosition property.

适用于

另请参阅