Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
SrgsOneOf Class
Represents a list of alternative words or phrases, any one of which may be used to match speech input.
Inheritance Hierarchy
System.Object
System.MarshalByRefObject
Microsoft.Speech.Recognition.SrgsGrammar.SrgsElement
Microsoft.Speech.Recognition.SrgsGrammar.SrgsOneOf
Namespace: Microsoft.Speech.Recognition.SrgsGrammar
Assembly: Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public NotInheritable Class SrgsOneOf _
Inherits SrgsElement
'Usage
Dim instance As SrgsOneOf
[SerializableAttribute]
public sealed class SrgsOneOf : SrgsElement
Remarks
A SrgsOneOf object contains a list of alternative words or phrases, any one of which may be recognized when spoken. You can build lists of alternatives from arrays of SrgsItem objects or arrays of String objects. Use the Items property to access the alternative items in the list.
The SrgsOneOf class represents the one-of element from the World Wide Web Consortium (W3C) Speech Recognition Grammar Specification (SRGS) Version 1.0. For information about the SRGS one-of element and details about its support by the Microsoft Speech Platform SDK 11, see one-of Element (Microsoft.Speech).
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
Microsoft.Speech.Recognition.SrgsGrammar Namespace