Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
SrgsItem.RepeatProbability Property
Gets or sets the probability that a user will repeat the contents of this SrgsItem instance.
Namespace: Microsoft.Speech.Recognition.SrgsGrammar
Assembly: Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
'Declaration
Public Property RepeatProbability As Single
Get
Set
'Usage
Dim instance As SrgsItem
Dim value As Single
value = instance.RepeatProbability
instance.RepeatProbability = value
public float RepeatProbability { get; set; }
Property Value
Type: System.Single
The probability, as a floating point value, that the contents of this item will be repeatedly spoken.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | An attempt is made to set RepeatProbability to a value that is negative or larger than 1.0. |
Remarks
The property applies only to items whose MinRepeat and MaxRepeat properties have been explicitly set to non-default values, either by a constructor for SrgsItem or by the SetRepeat method.
See Also
Reference
Microsoft.Speech.Recognition.SrgsGrammar Namespace