Bagikan melalui


SpeechHypothesizedEventArgs Kelas

Definisi

Mengembalikan pemberitahuan dari SpeechHypothesized atau SpeechHypothesized peristiwa.

Kelas ini mendukung infrastruktur .NET Framework dan tidak dimaksudkan untuk digunakan langsung dari kode aplikasi.

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
Warisan
SpeechHypothesizedEventArgs
Atribut

Contoh

Contoh di bawah ini membuat handler untuk SpeechRecognizer.SpeechHypothesized peristiwa atau SpeechRecognitionEngine.SpeechHypothesized . Handler menggunakan instans SpeechHypothesizedEventArgs untuk mengembalikan dan menampilkan informasi tentang frasa yang dikenali secara tentatif.

// 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);  
  }  

Keterangan

Peristiwa SpeechHypothesized dinaikkan oleh SpeechRecognizer kelas dan SpeechRecognitionEngine .

Anda dapat memperoleh informasi terperinci tentang frasa yang dikenali secara tentatif dengan menggunakan Result properti .

SpeechHypothesized Banyak peristiwa dihasilkan sebagai mesin pengenalan mencoba mengidentifikasi frasa input. Biasanya, menangani peristiwa ini hanya berguna untuk penelusuran kesalahan.

SpeechHypothesizedEventArgs berasal dari RecognitionEventArgs.

Properti

Result

Mendapatkan data hasil pengenalan yang terkait dengan peristiwa pengenalan ucapan.

(Diperoleh dari RecognitionEventArgs)

Metode

Equals(Object)

Menentukan apakah objek yang ditentukan sama dengan objek saat ini.

(Diperoleh dari Object)
GetHashCode()

Berfungsi sebagai fungsi hash default.

(Diperoleh dari Object)
GetType()

Mendapatkan dari instans Type saat ini.

(Diperoleh dari Object)
MemberwiseClone()

Membuat salinan dangkal dari saat ini Object.

(Diperoleh dari Object)
ToString()

Mengembalikan string yang mewakili objek saat ini.

(Diperoleh dari Object)

Berlaku untuk

Lihat juga