SpeechRecognitionServiceFactoryCreateMicrophoneClientWithIntent Method (String, String, String, String) |
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.SpeechRecognitionAssembly: SpeechClient (in SpeechClient.dll) Version: 0.0.0.0
Syntax public static MicrophoneRecognitionClientWithIntent CreateMicrophoneClientWithIntent(
string language,
string primaryOrSecondaryKey,
string luisAppId,
string luisSubscriptionId
)
Public Shared Function CreateMicrophoneClientWithIntent (
language As String,
primaryOrSecondaryKey As String,
luisAppId As String,
luisSubscriptionId As String
) As MicrophoneRecognitionClientWithIntent
public:
static MicrophoneRecognitionClientWithIntent^ CreateMicrophoneClientWithIntent(
String^ language,
String^ primaryOrSecondaryKey,
String^ luisAppId,
String^ luisSubscriptionId
)
static member CreateMicrophoneClientWithIntent :
language : string *
primaryOrSecondaryKey : string *
luisAppId : string *
luisSubscriptionId : string -> MicrophoneRecognitionClientWithIntent
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"
- primaryOrSecondaryKey
- Type: String
The primary or the secondary key. If you want to change the key(which is probably a good idea to
do every once in a while in case it gets leaked somehow), you would have some downtime if there
was only one key available. So you get two, the primary and the secondary.If you disable one
key the other key will still work giving you time to replace the disabled one.
- 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:
MicrophoneRecognitionClientWithIntentThe created DataRecognitionClientWithIntent.
See Also