Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

GrammarBuilder.Addition Operator (GrammarBuilder, String)

Creates a new GrammarBuilder that contains a GrammarBuilder followed by a phrase.

Namespace:  Microsoft.Speech.Recognition
Assembly:  Microsoft.Speech (in Microsoft.Speech.dll)

Syntax

'Declaration
Public Shared Operator + ( _
    builder As GrammarBuilder, _
    phrase As String _
) As GrammarBuilder
'Usage
Dim builder As GrammarBuilder
Dim phrase As String
Dim returnValue As GrammarBuilder

returnValue = (builder + phrase)
public static GrammarBuilder operator +(
    GrammarBuilder builder,
    string phrase
)

Parameters

  • phrase
    Type: System.String
    The second grammar element, which represents a sequence of words.

Return Value

Type: Microsoft.Speech.Recognition.GrammarBuilder
Returns a GrammarBuilder for the sequence of the builder parameter followed by the phrase parameter.

Remarks

GrammarBuilder supports conversions from the following classes.

This method accepts the objects listed above for the builder parameter. For more information, see the Implicit operators.

See Also

Reference

GrammarBuilder Class

GrammarBuilder Members

Addition Overload

Microsoft.Speech.Recognition Namespace

Add

Implicit