Click or drag to resize
SpeechRecognitionServiceFactoryCreateMicrophoneClientWithIntent Method (String, String, String, String, String)

Note: This API is now obsolete.

[Deprecated] Create a MicrophoneRecognitionClientWithIntent -- for speech recognition from the microphone. The microphone is turned on and data from the microphone is sent to the Speech Recognition Service. A built in Silence Detector is applied to the microphone data before it is sent to the recognition service. Returns both text recognition results as well as structured intent results in JSON form from the LUIS (see https://LUIS.ai) service.

Namespace: Microsoft.CognitiveServices.SpeechRecognition
Assembly: SpeechClient (in SpeechClient.dll) Version: 0.0.0.0
Syntax
[ObsoleteAttribute]
public static MicrophoneRecognitionClientWithIntent CreateMicrophoneClientWithIntent(
	string language,
	string primaryKey,
	string secondaryKey,
	string luisAppId,
	string luisSubscriptionId
)

Parameters

language
Type: String

American English: "en-us"

British English: "en-gb"

German: "de-de"

Spanish: "es-es"

French: "fr-fr"

Italian: "it-it"

Mandarin: "zh-cn"

primaryKey
Type: String
The primary key. It's a best practice that the application rotate keys periodically. Between rotations, you would disable the primary key, making the secondary key the default, giving you time to swap out the primary.
secondaryKey
Type: String
Ignored.
luisAppId
Type: String
Once you have configured the LUIS service to create and publish an intent model (see https://LUIS.ai) you will be given an Application ID guid. Use that GUID here.
luisSubscriptionId
Type: String
Once you create a LUIS account (see https://LUIS.ai) you will be given a Subscription ID. Use that secret here.

Return Value

Type: MicrophoneRecognitionClientWithIntent
The created DataRecognitionClientWithIntent.
See Also