-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
SpeechHypothesizedEventArgs.xml
73 lines (61 loc) · 5.03 KB
/
SpeechHypothesizedEventArgs.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<Type Name="SpeechHypothesizedEventArgs" FullName="System.Speech.Recognition.SpeechHypothesizedEventArgs">
<TypeSignature Language="C#" Value="public class SpeechHypothesizedEventArgs : System.Speech.Recognition.RecognitionEventArgs" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi serializable beforefieldinit SpeechHypothesizedEventArgs extends System.Speech.Recognition.RecognitionEventArgs" FrameworkAlternate="net-6.0;net-7.0;net-8.0;net-9.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1" />
<TypeSignature Language="DocId" Value="T:System.Speech.Recognition.SpeechHypothesizedEventArgs" />
<TypeSignature Language="VB.NET" Value="Public Class SpeechHypothesizedEventArgs
Inherits RecognitionEventArgs" />
<TypeSignature Language="F#" Value="type SpeechHypothesizedEventArgs = class
 inherit RecognitionEventArgs" />
<TypeSignature Language="C++ CLI" Value="public ref class SpeechHypothesizedEventArgs : System::Speech::Recognition::RecognitionEventArgs" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit SpeechHypothesizedEventArgs extends System.Speech.Recognition.RecognitionEventArgs" FrameworkAlternate="netstandard-2.0" />
<AssemblyInfo>
<AssemblyName>System.Speech</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Speech.Recognition.RecognitionEventArgs</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute FrameworkAlternate="net-6.0;net-7.0;net-8.0;net-9.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1">
<AttributeName Language="C#">[System.Serializable]</AttributeName>
<AttributeName Language="F#">[<System.Serializable>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Returns notification from <see cref="E:System.Speech.Recognition.SpeechRecognitionEngine.SpeechHypothesized" /> or <see cref="E:System.Speech.Recognition.SpeechRecognizer.SpeechHypothesized" /> events.
This class supports the .NET Framework infrastructure and is not intended to be used directly from application code.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
A `SpeechHypothesized` event is raised by the <xref:System.Speech.Recognition.SpeechRecognizer> and <xref:System.Speech.Recognition.SpeechRecognitionEngine> classes.
You can obtain detailed information about a tentatively recognized phrase by using the <xref:System.Speech.Recognition.RecognitionEventArgs.Result%2A> property.
Numerous `SpeechHypothesized` events are generated as a recognition engine attempts to identify an input phrase. Typically, handling these events is useful only for debugging.
`SpeechHypothesizedEventArgs` derives from <xref:System.Speech.Recognition.RecognitionEventArgs>.
## Examples
The example below creates a handler for <xref:System.Speech.Recognition.SpeechRecognizer.SpeechHypothesized?displayProperty=nameWithType> or <xref:System.Speech.Recognition.SpeechRecognitionEngine.SpeechHypothesized?displayProperty=nameWithType> events. The handler uses an instance of `SpeechHypothesizedEventArgs` to return and display information about a tentatively recognized phrase.
```
// 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);
}
```
]]></format>
</remarks>
<altmember cref="T:System.Speech.Recognition.RecognitionEventArgs" />
<altmember cref="T:System.Speech.Recognition.RecognitionResult" />
<altmember cref="E:System.Speech.Recognition.SpeechRecognizer.SpeechRecognized" />
<altmember cref="E:System.Speech.Recognition.SpeechRecognitionEngine.SpeechRecognized" />
<altmember cref="T:System.Speech.Recognition.SpeechRecognizedEventArgs" />
<altmember cref="E:System.Speech.Recognition.SpeechRecognizer.SpeechHypothesized" />
<altmember cref="E:System.Speech.Recognition.SpeechRecognitionEngine.SpeechHypothesized" />
<altmember cref="T:System.Speech.Recognition.SpeechRecognitionRejectedEventArgs" />
<altmember cref="E:System.Speech.Recognition.SpeechRecognizer.SpeechRecognitionRejected" />
<altmember cref="E:System.Speech.Recognition.SpeechRecognitionEngine.SpeechRecognitionRejected" />
</Docs>
<Members />
</Type>