SpeechHypothesizedEventArgs Clase

Definición

Devuelve la notificación de eventos SpeechHypothesized o SpeechHypothesized.

Esta clase es compatible con la infraestructura de .NET Framework y no está diseñada para utilizarse directamente desde el código de la aplicación.

public ref class SpeechHypothesizedEventArgs : System::Speech::Recognition::RecognitionEventArgs
[System.Serializable]
public class SpeechHypothesizedEventArgs : System.Speech.Recognition.RecognitionEventArgs
[<System.Serializable>]
type SpeechHypothesizedEventArgs = class
    inherit RecognitionEventArgs
Public Class SpeechHypothesizedEventArgs
Inherits RecognitionEventArgs
Herencia
SpeechHypothesizedEventArgs
Atributos

Ejemplos

En el ejemplo siguiente se crea un controlador para SpeechRecognizer.SpeechHypothesized eventos o SpeechRecognitionEngine.SpeechHypothesized . El controlador usa una instancia de SpeechHypothesizedEventArgs para devolver y mostrar información sobre una frase reconocida provisionalmente.

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

Comentarios

Las clases y SpeechRecognitionEngine generan SpeechRecognizer un SpeechHypothesized evento.

Puede obtener información detallada sobre una frase reconocida provisionalmente mediante la Result propiedad .

Se generan numerosos SpeechHypothesized eventos como un motor de reconocimiento que intenta identificar una frase de entrada. Normalmente, el control de estos eventos solo es útil para la depuración.

SpeechHypothesizedEventArgs se deriva de RecognitionEventArgs.

Propiedades

Result

Obtiene los datos del resultado de reconocimiento asociados al evento de reconocimiento de voz.

(Heredado de RecognitionEventArgs)

Métodos

Equals(Object)

Determina si el objeto especificado es igual que el objeto actual.

(Heredado de Object)
GetHashCode()

Sirve como la función hash predeterminada.

(Heredado de Object)
GetType()

Obtiene el Type de la instancia actual.

(Heredado de Object)
MemberwiseClone()

Crea una copia superficial del Object actual.

(Heredado de Object)
ToString()

Devuelve una cadena que representa el objeto actual.

(Heredado de Object)

Se aplica a

Consulte también