DictationGrammar Constructors

Definition

Initializes a new instance of the DictationGrammar class.

Overloads

DictationGrammar()

Initializes a new instance of the DictationGrammar class for the default dictation grammar provided by Windows Desktop Speech Technology.

DictationGrammar(String)

Initializes a new instance of the DictationGrammar class with a specific dictation grammar.

DictationGrammar()

Source:
DictationGrammar.cs
Source:
DictationGrammar.cs
Source:
DictationGrammar.cs

Initializes a new instance of the DictationGrammar class for the default dictation grammar provided by Windows Desktop Speech Technology.

C#
public DictationGrammar();

Remarks

The default dictation grammar emulates standard dictation practices, including punctuation. It does not support the spelling of a word.

Applies to

.NET 10 (package-provided) i druge verzije
Proizvod Verzije
.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)

DictationGrammar(String)

Source:
DictationGrammar.cs
Source:
DictationGrammar.cs
Source:
DictationGrammar.cs

Initializes a new instance of the DictationGrammar class with a specific dictation grammar.

C#
public DictationGrammar(string topic);

Parameters

topic
String

An XML-compliant Universal Resource Identifier (URI) that specifies the dictation grammar, either grammar:dictation or grammar:dictation#spelling.

Remarks

The Speech platform uses a specialized URI syntax to define the custom dictation grammar. The value grammar:dictation indicates the default dictation grammar. The value grammar:dictation#spelling indicates the spelling dictation grammar.

Applies to

.NET 10 (package-provided) i druge verzije
Proizvod Verzije
.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)