SpeechHypothesizedEventArgs クラス

定義

SpeechHypothesized または SpeechHypothesized イベントからの通知を返します。

このクラスは、.NET Framework インフラストラクチャをサポートします。アプリケーション コードから直接使用するためのものではありません。

public ref class SpeechHypothesizedEventArgs : System::Speech::Recognition::RecognitionEventArgs
[System.Serializable]
public class SpeechHypothesizedEventArgs : System.Speech.Recognition.RecognitionEventArgs
public class SpeechHypothesizedEventArgs : System.Speech.Recognition.RecognitionEventArgs
[<System.Serializable>]
type SpeechHypothesizedEventArgs = class
    inherit RecognitionEventArgs
type SpeechHypothesizedEventArgs = class
    inherit RecognitionEventArgs
Public Class SpeechHypothesizedEventArgs
Inherits RecognitionEventArgs
継承
SpeechHypothesizedEventArgs
属性

次の例では、 または SpeechRecognitionEngine.SpeechHypothesized イベントのハンドラーをSpeechRecognizer.SpeechHypothesized作成します。 ハンドラーは、 の SpeechHypothesizedEventArgs インスタンスを使用して、仮に認識されたフレーズに関する情報を返して表示します。

// Create a handler for the SpeechHypothesized event.  
recognizer.SpeechHypothesized += new EventHandler<SpeechHypothesizedEventArgs>(recognizer_SpeechHypothesized);  

// Handle the event and display the hypothesized result.  
void recognizer_SpeechHypothesized (object sender, SpeechHypothesizedEventArgs e)  
  {  
    Console.WriteLine("Hypothesized text: " + e.Result.Text);  
  }  

注釈

SpeechHypothesizedイベントは、 クラスと SpeechRecognitionEngine クラスによってSpeechRecognizer発生します。

仮に認識された語句に関する詳細情報は、 プロパティを Result 使用して取得できます。

認識エンジンが入力フレーズの識別を試みると、多数 SpeechHypothesized のイベントが生成されます。 通常、これらのイベントの処理はデバッグにのみ役立ちます。

SpeechHypothesizedEventArgs は、RecognitionEventArgs から派生します。

プロパティ

Result

音声認識イベントに関連付けられている認識結果データを取得します。

(継承元 RecognitionEventArgs)

メソッド

Equals(Object)

指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

適用対象

こちらもご覧ください