SpeechHypothesizedEventArgs Classe
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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
public class SpeechHypothesizedEventArgs : System.Speech.Recognition.RecognitionEventArgs
[System.Serializable]
public class SpeechHypothesizedEventArgs : System.Speech.Recognition.RecognitionEventArgs
type SpeechHypothesizedEventArgs = class
inherit RecognitionEventArgs
[<System.Serializable>]
type SpeechHypothesizedEventArgs = class
inherit RecognitionEventArgs
Public Class SpeechHypothesizedEventArgs
Inherits RecognitionEventArgs
- Ereditarietà
- Attributi
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);
}
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.
Result |
Ottiene i dati dei risultati di riconoscimento associati all'evento di riconoscimento vocale. (Ereditato da RecognitionEventArgs) |
Equals(Object) |
Determina se l'oggetto specificato è uguale all'oggetto corrente. (Ereditato da Object) |
Get |
Funge da funzione hash predefinita. (Ereditato da Object) |
Get |
Ottiene l'oggetto Type dell'istanza corrente. (Ereditato da Object) |
Memberwise |
Crea una copia superficiale dell'oggetto Object corrente. (Ereditato da Object) |
To |
Restituisce una stringa che rappresenta l'oggetto corrente. (Ereditato da Object) |
Prodotto | Versioni |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Feedback su .NET
.NET è un progetto open source. Seleziona un collegamento per fornire feedback: