SpeechRecognitionResult 類別

定義

語音辨識會話的結果。

public ref class SpeechRecognitionResult sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class SpeechRecognitionResult final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class SpeechRecognitionResult
Public NotInheritable Class SpeechRecognitionResult
繼承
Object Platform::Object IInspectable SpeechRecognitionResult
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

呼叫 SpeechRecognizer.RecognizeAsyncSpeechRecognizer.RecognizeWithUIAsync 方法,以取得這個類別的實例。

屬性

Confidence

取得值,這個值表示語音辨識器在辨識結果中的信賴度。

Constraint

取得用於辨識結果的條件約束。

PhraseDuration

取得語句所需的時間量。

PhraseStartTime

取得語句的開始時間。

RawConfidence

取得值,這個值表示 SpeechRecognitionResult 與辨識結果所傳回之替代專案的集合相較之下的相對信賴度。

RulePath

取得觸發以傳回已辨識片語的規則專案階層。

SemanticInterpretation

取得解譯物件,其中包含語音辨識文法規格中辨識片語的語意屬性, (SRGS) 文法。

Status

取得語音辨識會話 (SpeechRecognitionResultStatus) 的結果狀態。

Text

取得語音辨識會話的辨識片語。

方法

GetAlternates(UInt32)

取得辨識結果替代專案的集合,由 RawConfidence 排序,最可能最可能。 集合中的第一個專案是父物件所表示的辨識結果。

適用於

另請參閱