SpeechRecognitionHypothesis 类

定义

语音识别器在正在进行的听写会话期间返回的识别结果片段。

结果片段可用于演示语音识别在长时间听写会话期间正在处理输入。

public ref class SpeechRecognitionHypothesis sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SpeechRecognitionHypothesis final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SpeechRecognitionHypothesis
Public NotInheritable Class SpeechRecognitionHypothesis
继承
Object Platform::Object IInspectable SpeechRecognitionHypothesis
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

应用在处理 HypothesisGenerated 事件时,通过 SpeechRecognitionHypothesisGeneratedEventArgs.Hypothesis 属性检索此对象。

属性

Text

获取语音识别器在正在进行的听写会话期间返回的假设文本或识别结果片段。

适用于

另请参阅