SpeechRecognitionServiceFactoryCreateDataClientWithIntent Method (String, String, String, String, String, String) |
Note: This API is now obsolete.
[Deprecated] Create a DataRecognitionClientWithIntent with Acoustic Model Adaptation -- for speech recognition with
data (for example from a file or audio source).
The data is broken up into buffers and each buffer is sent to the Speech Recognition Service.
No modification is done to the buffers, so the user can apply their own Silence Detection. Returns both text
recognition results as well as structured intent results in JSON form from the
LUIS (see https://LUIS.ai) service. The audio must be PCM, mono, 16-bit sample, with sample rate of 8000 Hz or 16000 Hz.
Namespace: Microsoft.CognitiveServices.SpeechRecognitionAssembly: SpeechClient (in SpeechClient.dll) Version: 0.0.0.0
Syntax [ObsoleteAttribute]
public static DataRecognitionClientWithIntent CreateDataClientWithIntent(
string language,
string primaryKey,
string secondaryKey,
string luisAppId,
string luisSubscriptionId,
string url
)
<ObsoleteAttribute>
Public Shared Function CreateDataClientWithIntent (
language As String,
primaryKey As String,
secondaryKey As String,
luisAppId As String,
luisSubscriptionId As String,
url As String
) As DataRecognitionClientWithIntent
public:
[ObsoleteAttribute]
static DataRecognitionClientWithIntent^ CreateDataClientWithIntent(
String^ language,
String^ primaryKey,
String^ secondaryKey,
String^ luisAppId,
String^ luisSubscriptionId,
String^ url
)
[<ObsoleteAttribute>]
static member CreateDataClientWithIntent :
language : string *
primaryKey : string *
secondaryKey : string *
luisAppId : string *
luisSubscriptionId : string *
url : string -> DataRecognitionClientWithIntent
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.
- url
- Type: String
The endpoint with a Acoustic Model that you specially created with the Acoustic Model Specialization Service.
Return Value
Type:
DataRecognitionClientWithIntentThe created DataRecognitionClientWithIntent.
See Also