SpeechRecognitionTopicConstraint Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SpeechRecognitionTopicConstraint(SpeechRecognitionScenario, String) |
Creates an instance of the SpeechRecognitionTopicConstraint class by using a pre-defined scenario type and context. |
SpeechRecognitionTopicConstraint(SpeechRecognitionScenario, String, String) |
Creates an instance of the SpeechRecognitionTopicConstraint class by using a pre-defined scenario type, context, and an identifier. |
SpeechRecognitionTopicConstraint(SpeechRecognitionScenario, String)
Creates an instance of the SpeechRecognitionTopicConstraint class by using a pre-defined scenario type and context.
public:
SpeechRecognitionTopicConstraint(SpeechRecognitionScenario scenario, Platform::String ^ topicHint);
SpeechRecognitionTopicConstraint(SpeechRecognitionScenario const& scenario, winrt::hstring const& topicHint);
public SpeechRecognitionTopicConstraint(SpeechRecognitionScenario scenario, string topicHint);
function SpeechRecognitionTopicConstraint(scenario, topicHint)
Public Sub New (scenario As SpeechRecognitionScenario, topicHint As String)
Parameters
- scenario
- SpeechRecognitionScenario
A predefined scenario type.
- topicHint
-
String
Platform::String
winrt::hstring
A subject, or context hint, used to optimize recognition.
See also
- SpeechRecognitionTopicConstraint(SpeechRecognitionScenario, String, String)
- Speech interactions
- Speech recognition and speech synthesis sample
Applies to
SpeechRecognitionTopicConstraint(SpeechRecognitionScenario, String, String)
Creates an instance of the SpeechRecognitionTopicConstraint class by using a pre-defined scenario type, context, and an identifier.
public:
SpeechRecognitionTopicConstraint(SpeechRecognitionScenario scenario, Platform::String ^ topicHint, Platform::String ^ tag);
SpeechRecognitionTopicConstraint(SpeechRecognitionScenario const& scenario, winrt::hstring const& topicHint, winrt::hstring const& tag);
public SpeechRecognitionTopicConstraint(SpeechRecognitionScenario scenario, string topicHint, string tag);
function SpeechRecognitionTopicConstraint(scenario, topicHint, tag)
Public Sub New (scenario As SpeechRecognitionScenario, topicHint As String, tag As String)
Parameters
- scenario
- SpeechRecognitionScenario
A predefined scenario type.
- topicHint
-
String
Platform::String
winrt::hstring
A subject, or context hint, used to optimize recognition.
- tag
-
String
Platform::String
winrt::hstring
Identifier for the constraint.
See also
- SpeechRecognitionTopicConstraint(SpeechRecognitionScenario, String)
- Speech interactions
- Speech recognition and speech synthesis sample