類別 AsyncRecognizer

class AsyncRecognizer
  : public Recognizer

AsyncRecognizer 抽象基類。

成員

SessionStarted

語法: public EventSignal< constSessionEventArgs & > SessionStarted;

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

SessionStopped

語法: public EventSignal< constSessionEventArgs & > SessionStopped;

表示辨識會話結束 (作業) 的事件訊號。

SpeechStartDetected

語法: public EventSignal< constRecognitionEventArgs & > SpeechStartDetected;

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

SpeechEndDetected

語法: public EventSignal< constRecognitionEventArgs & > SpeechEndDetected;

表示語音結束的事件訊號。

識別

語法: public EventSignal< constRecoEventArgs & > Recognizing;

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

認可

語法: public EventSignal< constRecoEventArgs & > Recognized;

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

已取消

語法: public EventSignal< constRecoCanceledEventArgs & > 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 ( );

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

傳回

空的未來。