Share via


Note

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

SrgsItem.MaxRepeat Property

Gets the maximum number of times that a user can speak the contents of the SrgsItem.

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

Syntax

'Declaration
Public ReadOnly Property MaxRepeat As Integer
    Get
'Usage
Dim instance As SrgsItem
Dim value As Integer

value = instance.MaxRepeat
public int MaxRepeat { get; }

Property Value

Type: System.Int32
The maximum number of times that a user can speak the contents of the item.

Remarks

To set this property, use the SetRepeat method.

This property represents a portion of the repeat attribute of the World Wide Web Consortium (W3C) Speech Recognition Grammar Specification (SRGS) Version 1.0.

See Also

Reference

SrgsItem Class

SrgsItem Members

Microsoft.Speech.Recognition.SrgsGrammar Namespace

Other Resources

Create Grammars Using SrgsGrammar (Microsoft.Speech)