GrammarBuilder.Append Metoda

Definicja

Dołącza element gramatyki do bieżącej sekwencji elementów gramatycznych.

Przeciążenia

Append(String, Int32, Int32)

Dołącza powtarzaną frazę do bieżącej sekwencji elementów gramatycznych.

Append(GrammarBuilder, Int32, Int32)

Dołącza powtarzany element gramatyki do bieżącej sekwencji elementów gramatycznych.

Append(String)

Dołącza frazę do bieżącej sekwencji elementów gramatycznych.

Append(String, SubsetMatchingMode)

Dołącza element dla podzestawu frazy do bieżącej sekwencji elementów gramatycznych.

Append(SemanticResultKey)

Dołącza klucz semantyczny do bieżącej sekwencji elementów gramatycznych.

Append(SemanticResultValue)

Dołącza wartość semantyczną do bieżącej sekwencji elementów gramatycznych.

Append(GrammarBuilder)

Dołącza element gramatyki do bieżącej sekwencji elementów gramatycznych.

Append(Choices)

Dołącza zestaw alternatyw do bieżącej sekwencji elementów gramatycznych.

Uwagi

Użyj tych metod, aby dołączyć elementy gramatyczne do istniejącego GrammarBuilderelementu . Podczas tworzenia elementów gramatycznych można dołączyć je do istniejącego konstruktora, aby stopniowo opracowywać ograniczenia gramatyki rozpoznawania mowy. Każdy element jest dodawany na końcu bieżącej sekwencji elementów.

Ta metoda ma przeciążenia dołączania GrammarBuilderobiektów , , ChoicesString, SemanticResultKeyi SemanticResultValue .

Ważne

Rozpoznawanie mowy może zgłosić wyjątek podczas korzystania z gramatyki rozpoznawania mowy zawierającej zduplikowane elementy semantyczne o tej samej nazwie klucza lub wielu elementach semantycznych, które mogą wielokrotnie modyfikować wartość tego samego elementu semantycznego.

Aby uzyskać więcej informacji na temat kompilowania i używania gramatyk rozpoznawania mowy, zobacz Rozpoznawanie mowy.

Append(String, Int32, Int32)

Źródło:
GrammarBuilder.cs
Źródło:
GrammarBuilder.cs
Źródło:
GrammarBuilder.cs

Dołącza powtarzaną frazę do bieżącej sekwencji elementów gramatycznych.

public:
 void Append(System::String ^ phrase, int minRepeat, int maxRepeat);
public void Append (string phrase, int minRepeat, int maxRepeat);
member this.Append : string * int * int -> unit
Public Sub Append (phrase As String, minRepeat As Integer, maxRepeat As Integer)

Parametry

phrase
String

Powtarzana sekwencja wyrazów do dołączenia.

minRepeat
Int32

Minimalna liczba wystąpień dopasowania phrase danych wejściowych w celu utworzenia dopasowania.

maxRepeat
Int32

Maksymalna liczba przypadków dopasowania danych wejściowych phrase może stanowić dopasowanie.

Przykłady

Poniższy przykład tworzy gramatykę rozpoznawania mowy dla fraz, takich jak "Call James at work" i "Call Anne on her cell phone", gdzie słowo "phone" jest opcjonalne. GrammarBuilder i Choices obiekty są używane do konstruowania gramatyki. W przykładzie wyróżniono użycie Append metody .

public static Grammar CreatePhonePhrase()
{
  // Create alternatives for person names, locations, devices, and pronouns.
  Choices personChoice = new Choices(new string[] {"Anne", "James", "Mary", "Sam"});
  Choices locationChoice = new Choices(new string[] {"home", "work"});
  Choices deviceChoice = new Choices(new string[] {"home", "work", "cell"});
  Choices pronounChoice = new Choices(new string[] {"his", "her"});

  // Create a phrase for the receiving device, which optionally contains the word "phone".
  GrammarBuilder devicePhrase = new GrammarBuilder(pronounChoice);
  devicePhrase.Append(deviceChoice);
  devicePhrase.Append("phone", 0, 1);

  // Create alternatives for phrases specifying a device or a location.
  GrammarBuilder atLocation = new GrammarBuilder("at");
  atLocation.Append(locationChoice);

  GrammarBuilder onDevice = new GrammarBuilder("on");
  onDevice.Append(devicePhrase);

  Choices howChoice = new Choices(new GrammarBuilder[] {atLocation, onDevice});

  // Build the final phrase.
  GrammarBuilder callWho = new GrammarBuilder("Call");
  callWho.Append(personChoice);
  callWho.Append(howChoice);

  // Create the Grammar object.
  Grammar callGrammar = new Grammar(callWho);
  callGrammar.Name = "Call Grammar";

  return callGrammar;
}

Uwagi

Wartość musi minRepeat być większa lub równa 0 i mniejsza niż lub równa wartości .maxRepeat

Zobacz też

Dotyczy

Append(GrammarBuilder, Int32, Int32)

Źródło:
GrammarBuilder.cs
Źródło:
GrammarBuilder.cs
Źródło:
GrammarBuilder.cs

Dołącza powtarzany element gramatyki do bieżącej sekwencji elementów gramatycznych.

public:
 void Append(System::Speech::Recognition::GrammarBuilder ^ builder, int minRepeat, int maxRepeat);
public void Append (System.Speech.Recognition.GrammarBuilder builder, int minRepeat, int maxRepeat);
member this.Append : System.Speech.Recognition.GrammarBuilder * int * int -> unit
Public Sub Append (builder As GrammarBuilder, minRepeat As Integer, maxRepeat As Integer)

Parametry

builder
GrammarBuilder

Powtarzany element gramatyki do dołączenia.

minRepeat
Int32

Minimalna liczba razy, gdy dane wejściowe pasujące do elementu zdefiniowanego przez builder element muszą wystąpić w celu utworzenia dopasowania.

maxRepeat
Int32

Maksymalna liczba przypadków dopasowania danych wejściowych zdefiniowanych przez builder element może wystąpić w celu utworzenia dopasowania.

Przykłady

Poniższy przykład tworzy gramatykę rozpoznawania mowy dla fraz, takich jak "Call James at work" i "Call Anne on her cell phone", gdzie słowo "phone" jest opcjonalne. GrammarBuilder i Choices obiekty są używane do konstruowania gramatyki. W przykładzie wyróżniono użycie Append metody .

public static Grammar CreatePhonePhrase()
{
  // Create alternatives for person names, locations, devices, and pronouns.
  Choices personChoice = new Choices(new string[] {"Anne", "James", "Mary", "Sam"});
  Choices locationChoice = new Choices(new string[] {"home", "work"});
  Choices deviceChoice = new Choices(new string[] {"home", "work", "cell"});
  Choices pronounChoice = new Choices(new string[] {"his", "her"});

  // Create a phrase for the receiving device, which optionally contains the word "phone".
  GrammarBuilder devicePhrase = new GrammarBuilder(pronounChoice);
  devicePhrase.Append(deviceChoice);
  devicePhrase.Append("phone", 0, 1);

  // Create alternatives for phrases specifying a device or a location.
  GrammarBuilder atLocation = new GrammarBuilder("at");
  atLocation.Append(locationChoice);

  GrammarBuilder onDevice = new GrammarBuilder("on");
  onDevice.Append(devicePhrase);

  Choices howChoice = new Choices(new GrammarBuilder[] {atLocation, onDevice});

  // Build the final phrase.
  GrammarBuilder callWho = new GrammarBuilder("Call");
  callWho.Append(personChoice);
  callWho.Append(howChoice);

  // Create the Grammar object.
  Grammar callGrammar = new Grammar(callWho);
  callGrammar.Name = "Call Grammar";

  return callGrammar;
}

Uwagi

Wartość musi minRepeat być większa lub równa 0 i mniejsza niż lub równa wartości .maxRepeat

Ważne

Podczas dołączania GrammarBuilder obiektów zawierających SemanticResultValue obiekty lub SemanticResultKey wystąpień do GrammarBuilder obiektu należy unikać tworzenia zduplikowanych elementów semantycznych o tej samej nazwie klucza lub wielu elementach semantycznych, które mogą wielokrotnie modyfikować Value właściwość SemanticValue obiektu. Rozpoznawanie mowy może zgłosić wyjątek, jeśli napotka te okoliczności.

Zobacz też

Dotyczy

Append(String)

Źródło:
GrammarBuilder.cs
Źródło:
GrammarBuilder.cs
Źródło:
GrammarBuilder.cs

Dołącza frazę do bieżącej sekwencji elementów gramatycznych.

public:
 void Append(System::String ^ phrase);
public void Append (string phrase);
member this.Append : string -> unit
Public Sub Append (phrase As String)

Parametry

phrase
String

Sekwencja wyrazów do dołączenia.

Uwagi

phrase jest dodawany na końcu bieżącej sekwencji elementów.

Zobacz też

Dotyczy

Append(String, SubsetMatchingMode)

Źródło:
GrammarBuilder.cs
Źródło:
GrammarBuilder.cs
Źródło:
GrammarBuilder.cs

Dołącza element dla podzestawu frazy do bieżącej sekwencji elementów gramatycznych.

public:
 void Append(System::String ^ phrase, System::Speech::Recognition::SubsetMatchingMode subsetMatchingCriteria);
public void Append (string phrase, System.Speech.Recognition.SubsetMatchingMode subsetMatchingCriteria);
member this.Append : string * System.Speech.Recognition.SubsetMatchingMode -> unit
Public Sub Append (phrase As String, subsetMatchingCriteria As SubsetMatchingMode)

Parametry

phrase
String

Sekwencja wyrazów do dołączenia.

subsetMatchingCriteria
SubsetMatchingMode

Tryb dopasowywania gramatyki używa do rozpoznawania frazy.

Przykłady

Poniższy przykład tworzy gramatykę rozpoznawania mowy dla każdej SubsetMatchingMode wartości. Na przykład wygenerowana gramatyka OrderedSubset rozpoznaje frazy "trzy cztery pięć" i "trzy pięć", a gramatyka Subsequence rozpoznaje frazę "trzy cztery pięć", ale nie frazę "jeden trzy pięć".

private Grammar[] CreateSubsetMatchTest()
{
  List<Grammar> grammars = new List<Grammar>(4);

  string phrase = "one two three four five six";
  foreach (SubsetMatchingMode mode in
    Enum.GetValues(typeof(SubsetMatchingMode)))
  {
    GrammarBuilder gb = new GrammarBuilder();
    gb.Append(phrase, mode);

    Grammar grammar = new Grammar(gb);
    grammar.Name = mode.ToString();
    grammars.Add(grammar);
  }

  return grammars.ToArray();
}

Uwagi

Element podzestawu jest dodawany na końcu bieżącej sekwencji elementów. Aby uzyskać więcej informacji na temat tworzenia gramatyki rozpoznawania mowy przy użyciu ciągów, zobacz Using Strings to Create a GrammarBuilder Grammar (Używanie ciągów do tworzenia gramatyki grammarbuilder).

Aby uzyskać szczegółowe informacje na temat korzystania z trybów dopasowywania podzestawu, zobacz System.Speech.Recognition.SubsetMatchingMode.

Zobacz też

Dotyczy

Append(SemanticResultKey)

Źródło:
GrammarBuilder.cs
Źródło:
GrammarBuilder.cs
Źródło:
GrammarBuilder.cs

Dołącza klucz semantyczny do bieżącej sekwencji elementów gramatycznych.

public:
 void Append(System::Speech::Recognition::SemanticResultKey ^ key);
public void Append (System.Speech.Recognition.SemanticResultKey key);
member this.Append : System.Speech.Recognition.SemanticResultKey -> unit
Public Sub Append (key As SemanticResultKey)

Parametry

key
SemanticResultKey

Klucz semantyczny do dołączenia.

Przykłady

Poniższy przykład jest częścią aplikacji konsolowej do wybierania miast źródłowych i docelowych dla lotu. Aplikacja rozpoznaje frazy, takie jak "Chcę polecieć z Miami do Chicago". Procedura obsługi zdarzenia SpeechRecognized używa elementu SemanticResultKey , aby wyodrębnić kod lotniska określony w SemanticResultValue miastach źródłowych i docelowych.

using System;
using System.Speech.Recognition;

namespace SampleRecognition
{
  class Program
  {
    static void Main(string[] args)

    // Initialize an in-process speech recognition engine.
    {
      using (SpeechRecognitionEngine recognizer =
         new SpeechRecognitionEngine())
      {

        // Create a Choices object and add  cities and airport codes
        // using SemanticResultValue objects.
        Choices cities = new Choices();
        cities.Add(new SemanticResultValue("Chicago", "ORD"));
        cities.Add(new SemanticResultValue("Boston", "BOS"));
        cities.Add(new SemanticResultValue("Miami", "MIA"));
        cities.Add(new SemanticResultValue("Dallas", "DFW"));

        // Build the phrase and add SemanticResultKeys.
        GrammarBuilder chooseCities = new GrammarBuilder();
        chooseCities.Append("I want to fly from");
        chooseCities.Append(new SemanticResultKey("origin", cities));
        chooseCities.Append("to");
        chooseCities.Append(new SemanticResultKey("destination", cities));

        // Build a Grammar object from the GrammarBuilder.
        Grammar bookFlight = new Grammar(chooseCities);
        bookFlight.Name = "Book Flight";

        // Add a handler for the LoadGrammarCompleted event.
        recognizer.LoadGrammarCompleted +=
          new EventHandler<LoadGrammarCompletedEventArgs>(recognizer_LoadGrammarCompleted);

        // Add a handler for the SpeechRecognized event.
        recognizer.SpeechRecognized +=
          new EventHandler<SpeechRecognizedEventArgs>(recognizer_SpeechRecognized);

        // Configure the input to the recognizer.
        recognizer.SetInputToDefaultAudioDevice();

        // Load the grammar object and start recognition.
        recognizer.LoadGrammarAsync(bookFlight);
        recognizer.RecognizeAsync();

        // Keep the console window open.
        Console.ReadLine();
      }
    }

    // Handle the LoadGrammarCompleted event.
    static void recognizer_LoadGrammarCompleted(object sender, LoadGrammarCompletedEventArgs e)
    {
      Console.WriteLine("Grammar loaded: " + e.Grammar.Name);
      Console.WriteLine();
    }

    // Handle the SpeechRecognized event.
    static void recognizer_SpeechRecognized(object sender, SpeechRecognizedEventArgs e)
    {
      Console.WriteLine("Speech recognized:  " + e.Result.Text);
      Console.WriteLine();
      Console.WriteLine("Semantic results:");
      Console.WriteLine("  The flight origin is " + e.Result.Semantics["origin"].Value);
      Console.WriteLine("  The flight destination is " + e.Result.Semantics["destination"].Value);
    }
  }
}

Uwagi

key jest dodawany na końcu bieżącej sekwencji elementów.

Ważne

Podczas dołączania SemanticResultValue lub SemanticResultKey wystąpień do GrammarBuilder obiektu należy unikać tworzenia zduplikowanych elementów semantycznych o tej samej nazwie klucza lub wielu elementach semantycznych, które mogą wielokrotnie modyfikować Value właściwość SemanticValue obiektu. Rozpoznawanie mowy może zgłosić wyjątek, jeśli napotka te okoliczności.

Zobacz też

Dotyczy

Append(SemanticResultValue)

Źródło:
GrammarBuilder.cs
Źródło:
GrammarBuilder.cs
Źródło:
GrammarBuilder.cs

Dołącza wartość semantyczną do bieżącej sekwencji elementów gramatycznych.

public:
 void Append(System::Speech::Recognition::SemanticResultValue ^ value);
public void Append (System.Speech.Recognition.SemanticResultValue value);
member this.Append : System.Speech.Recognition.SemanticResultValue -> unit
Public Sub Append (value As SemanticResultValue)

Parametry

value
SemanticResultValue

Wartość semantyczna do dołączenia.

Przykłady

Poniższy przykład jest częścią aplikacji konsolowej do wybierania miast źródłowych i docelowych dla lotu. Aplikacja rozpoznaje frazy, takie jak "Chcę polecieć z Miami do Chicago". Procedura obsługi zdarzenia SpeechRecognized używa elementu SemanticResultKey , aby wyodrębnić kod lotniska określony w SemanticResultValue miastach źródłowych i docelowych.

using System;
using System.Speech.Recognition;

namespace SampleRecognition
{
  class Program
  {
    static void Main(string[] args)

    // Initialize an in-process speech recognition engine.
    {
      using (SpeechRecognitionEngine recognizer =
         new SpeechRecognitionEngine())
      {

        // Create GrammarBuilder objects and append SemanticResultValue objects
        // that contain cities and airport codes.

        GrammarBuilder chicago = new GrammarBuilder();
        chicago.Append(new SemanticResultValue("Chicago", "ORD"));

        GrammarBuilder boston = new GrammarBuilder();
        boston.Append(new SemanticResultValue("Boston", "BOS"));

        GrammarBuilder miami = new GrammarBuilder();
        miami.Append(new SemanticResultValue("Miami", "MIA"));

        GrammarBuilder dallas = new GrammarBuilder();
        dallas.Append(new SemanticResultValue("Dallas", "DFW"));

        // Create a Choices object and add the cities using implicit conversion from
        // SemanticResultValue to GrammarBuilder.
        Choices cities = new Choices();
        cities.Add(new Choices(new GrammarBuilder[] { chicago, boston, miami, dallas }));

        // Build the phrase and add SemanticResultKeys.
        GrammarBuilder chooseCities = new GrammarBuilder();
        chooseCities.Append("I want to fly from");
        chooseCities.Append(new SemanticResultKey("origin", cities));
        chooseCities.Append("to");
        chooseCities.Append(new SemanticResultKey("destination", cities));

        // Build a Grammar object from the GrammarBuilder.
        Grammar bookFlight = new Grammar(chooseCities);
        bookFlight.Name = "Book Flight";

        // Add a handler for the LoadGrammarCompleted event.
        recognizer.LoadGrammarCompleted +=
          new EventHandler<LoadGrammarCompletedEventArgs>(recognizer_LoadGrammarCompleted);

        // Add a handler for the SpeechRecognized event.
        recognizer.SpeechRecognized +=
          new EventHandler<SpeechRecognizedEventArgs>(recognizer_SpeechRecognized);

        // Configure the input to the recognizer.
        recognizer.SetInputToDefaultAudioDevice();

        // Load the grammar object and start recognition.
        recognizer.LoadGrammarAsync(bookFlight);
        recognizer.RecognizeAsync();

        // Keep the console window open.
        Console.ReadLine();
      }
    }
    // Handle the LoadGrammarCompleted event.
    static void recognizer_LoadGrammarCompleted(object sender, LoadGrammarCompletedEventArgs e)
    {
      Console.WriteLine("Grammar loaded: " + e.Grammar.Name);
      Console.WriteLine();
    }

    // Handle the SpeechRecognized event.
    static void recognizer_SpeechRecognized(object sender, SpeechRecognizedEventArgs e)
    {
      Console.WriteLine("Speech recognized:  " + e.Result.Text);
      Console.WriteLine();
      Console.WriteLine("Semantic results:");
      Console.WriteLine("  The flight origin is " + e.Result.Semantics["origin"].Value);
      Console.WriteLine("  The flight destination is " + e.Result.Semantics["destination"].Value);
    }
  }
}

Uwagi

value jest dodawany na końcu bieżącej sekwencji elementów.

Ważne

Podczas dołączania SemanticResultValue lub SemanticResultKey wystąpień do GrammarBuilder obiektu należy unikać tworzenia zduplikowanych elementów semantycznych o tej samej nazwie klucza lub wielu elementach semantycznych, które mogą wielokrotnie modyfikować Value właściwość SemanticValue obiektu. Rozpoznawanie mowy może zgłosić wyjątek, jeśli napotka te okoliczności.

Zobacz też

Dotyczy

Append(GrammarBuilder)

Źródło:
GrammarBuilder.cs
Źródło:
GrammarBuilder.cs
Źródło:
GrammarBuilder.cs

Dołącza element gramatyki do bieżącej sekwencji elementów gramatycznych.

public:
 void Append(System::Speech::Recognition::GrammarBuilder ^ builder);
public void Append (System.Speech.Recognition.GrammarBuilder builder);
member this.Append : System.Speech.Recognition.GrammarBuilder -> unit
Public Sub Append (builder As GrammarBuilder)

Parametry

builder
GrammarBuilder

Element gramatyki do dołączenia.

Przykłady

Poniższy przykład tworzy gramatykę rozpoznawania mowy dla fraz, takich jak "Call James at work" i "Call Anne on her cell phone", gdzie słowo "phone" jest opcjonalne. GrammarBuilder i Choices obiekty są używane do konstruowania gramatyki. W przykładzie wyróżniono użycie Append metody .

public static Grammar CreatePhonePhrase()
{
  // Create alternatives for person names, locations, devices, and pronouns.
  Choices personChoice = new Choices(new string[] {"Anne", "James", "Mary", "Sam"});
  Choices locationChoice = new Choices(new string[] {"home", "work"});
  Choices deviceChoice = new Choices(new string[] {"home", "work", "cell"});
  Choices pronounChoice = new Choices(new string[] {"his", "her"});

  // Create a phrase for the receiving device, which optionally contains the word "phone".
  GrammarBuilder devicePhrase = new GrammarBuilder(pronounChoice);
  devicePhrase.Append(deviceChoice);
  devicePhrase.Append("phone", 0, 1);

  // Create alternatives for phrases specifying a device or a location.
  GrammarBuilder atLocation = new GrammarBuilder("at");
  atLocation.Append(locationChoice);

  GrammarBuilder onDevice = new GrammarBuilder("on");
  onDevice.Append(devicePhrase);

  Choices howChoice = new Choices(new GrammarBuilder[] {atLocation, onDevice});

  // Build the final phrase.
  GrammarBuilder callWho = new GrammarBuilder("Call");
  callWho.Append(personChoice);
  callWho.Append(howChoice);

  // Create the Grammar object.
  Grammar callGrammar = new Grammar(callWho);
  callGrammar.Name = "Call Grammar";

  return callGrammar;
}

Uwagi

builder jest dodawany na końcu bieżącej sekwencji elementów gramatycznych.

Uwaga

Podczas dołączania GrammarBuilder obiektów zawierających SemanticResultValue obiekty lub SemanticResultKey wystąpień do GrammarBuilder obiektu należy unikać tworzenia zduplikowanych elementów semantycznych o tej samej nazwie klucza lub wielu elementach semantycznych, które mogą wielokrotnie modyfikować Value właściwość SemanticValue obiektu. Rozpoznawanie mowy może zgłosić wyjątek, jeśli napotka te okoliczności.

Zobacz też

Dotyczy

Append(Choices)

Źródło:
GrammarBuilder.cs
Źródło:
GrammarBuilder.cs
Źródło:
GrammarBuilder.cs

Dołącza zestaw alternatyw do bieżącej sekwencji elementów gramatycznych.

public:
 void Append(System::Speech::Recognition::Choices ^ alternateChoices);
public void Append (System.Speech.Recognition.Choices alternateChoices);
member this.Append : System.Speech.Recognition.Choices -> unit
Public Sub Append (alternateChoices As Choices)

Parametry

alternateChoices
Choices

Zestaw alternatyw do dołączenia.

Przykłady

Poniższy przykład tworzy gramatykę rozpoznawania mowy dla fraz, takich jak "Call James at work" i "Call Anne on her cell phone", gdzie słowo "phone" jest opcjonalne. W przykładzie wyróżniono użycie Append metody .

public static Grammar CreatePhonePhrase()
{
  // Create alternatives for person names, locations, devices, and pronouns.
  Choices personChoice = new Choices(new string[] {"Anne", "James", "Mary", "Sam"});
  Choices locationChoice = new Choices(new string[] {"home", "work"});
  Choices deviceChoice = new Choices(new string[] {"home", "work", "cell"});
  Choices pronounChoice = new Choices(new string[] {"his", "her"});

  // Create a phrase for the receiving device, which optionally contains the word "phone".
  GrammarBuilder devicePhrase = new GrammarBuilder(pronounChoice);
  devicePhrase.Append(deviceChoice);
  devicePhrase.Append("phone", 0, 1);

  // Create alternatives for phrases specifying a device or a location.
  GrammarBuilder atLocation = new GrammarBuilder("at");
  atLocation.Append(locationChoice);

  GrammarBuilder onDevice = new GrammarBuilder("on");
  onDevice.Append(devicePhrase);

  Choices howChoice = new Choices(new GrammarBuilder[] {atLocation, onDevice});

  // Build the final phrase.
  GrammarBuilder callWho = new GrammarBuilder("Call");
  callWho.Append(personChoice);
  callWho.Append(howChoice);

  // Create the Grammar object.
  Grammar callGrammar = new Grammar(callWho);
  callGrammar.Name = "Call Grammar";

  return callGrammar;
}

Uwagi

alternateChoices jest dodawany na końcu bieżącej sekwencji elementów.

Ważne

Podczas dołączania Choices obiektów zawierających SemanticResultValue obiekty lub SemanticResultKey wystąpień do GrammarBuilder obiektu należy unikać tworzenia zduplikowanych elementów semantycznych o tej samej nazwie klucza lub wielu elementach semantycznych, które mogą wielokrotnie modyfikować Value właściwość SemanticValue obiektu. Rozpoznawanie mowy może zgłosić wyjątek, jeśli napotka te okoliczności.

Dotyczy