共用方式為


類別 AsyncRecognizer

class AsyncRecognizer
  : public Recognizer

AsyncRecognizer 抽象基類。

成員

SessionStarted

語法:public EventSignal< const SessionEventArgs & > SessionStarted;

指出辨識會話 (作業) 開始的事件訊號。

SessionStopped

語法:public EventSignal< const SessionEventArgs & > SessionStopped;

指出辨識會話結尾的事件訊號(作業)。

SpeechStartDetected

語法:public EventSignal< const RecognitionEventArgs & > SpeechStartDetected;

指出語音開始的事件訊號。

SpeechEndDetected

語法:public EventSignal< const RecognitionEventArgs & > SpeechEndDetected;

指出語音結束的事件訊號。

識別

語法:public EventSignal< const RecoEventArgs & > Recognizing;

包含中繼辨識結果的事件訊號。

已認列

語法:public EventSignal< const RecoEventArgs & > Recognized;

包含最終辨識結果的事件訊號。 (表示成功辨識嘗試)。

已取消

語法:public EventSignal< const RecoCanceledEventArgs & > Canceled;

包含已取消辨識結果的事件訊號(表示因結果或直接取消要求而取消的辨識嘗試,或者傳輸或通訊協定失敗)。

RecognizeOnceAsync

語法:public std::future< std::shared_ptr< RecoResult > > RecognizeOnceAsync ( );

以非封鎖(異步)模式執行辨識。

退貨

未來包含異步辨識的結果值(RecoResult 的共享指標)。

StartContinuousRecognitionAsync

語法:public std::future< void > StartContinuousRecognitionAsync ( );

以異步方式起始連續辨識作業。

退貨

空的未來。

StopContinuousRecognitionAsync

語法:public std::future< void > StopContinuousRecognitionAsync ( );

以異步方式終止進行中的連續辨識作業。

退貨

空的未來。

StartKeywordRecognitionAsync

語法:public std::future< void > StartKeywordRecognitionAsync ( std::shared_ptr< KeywordRecognitionModel > model );

以異步方式起始關鍵詞辨識作業。

參數

  • model 指定要辨識關鍵詞的關鍵詞辨識模型。

退貨

啟動關鍵詞辨識的異步操作。

StopKeywordRecognitionAsync

語法:public std::future< void > StopKeywordRecognitionAsync ( );

以異步方式終止進行中的關鍵詞辨識作業。

退貨

空的未來。