SpeechHypothesizedEventArgs Classe

Definizione

Restituisce la notifica da eventi SpeechHypothesized o SpeechHypothesized.

Questa classe supporta l'infrastruttura .NET Framework e non deve essere utilizzata direttamente dal codice di applicazione.

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
Ereditarietà
SpeechHypothesizedEventArgs
Attributi

Esempio

L'esempio seguente crea un gestore per SpeechRecognizer.SpeechHypothesized gli eventi o SpeechRecognitionEngine.SpeechHypothesized . Il gestore usa un'istanza di SpeechHypothesizedEventArgs per restituire e visualizzare informazioni su una frase provvisoriamente riconosciuta.

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

Commenti

Un SpeechHypothesized evento viene generato dalle SpeechRecognizer classi e SpeechRecognitionEngine .

È possibile ottenere informazioni dettagliate su una frase provvisoriamente riconosciuta usando la Result proprietà .

Numerosi SpeechHypothesized eventi vengono generati come un motore di riconoscimento tenta di identificare una frase di input. In genere, la gestione di questi eventi è utile solo per il debug.

SpeechHypothesizedEventArgs deriva da RecognitionEventArgs.

Proprietà

Result

Ottiene i dati dei risultati di riconoscimento associati all'evento di riconoscimento vocale.

(Ereditato da RecognitionEventArgs)

Metodi

Equals(Object)

Determina se l'oggetto specificato è uguale all'oggetto corrente.

(Ereditato da Object)
GetHashCode()

Funge da funzione hash predefinita.

(Ereditato da Object)
GetType()

Ottiene l'oggetto Type dell'istanza corrente.

(Ereditato da Object)
MemberwiseClone()

Crea una copia superficiale dell'oggetto Object corrente.

(Ereditato da Object)
ToString()

Restituisce una stringa che rappresenta l'oggetto corrente.

(Ereditato da Object)

Si applica a

Vedi anche