クラス 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 ( );
進行中のキーワード認識操作を非同期的に終了します。
返品ポリシー
空の未来。