AI-102: Recognizing Phrases and Intent in Speech with Azure Speech and Language Understanding Services

Recognizing Phrases and Intent in Speech with Azure Speech and Language Understanding Services

Question

To recognize specific phrases and intent in a recorded speech, you use Speech and Language Understanding services in Azure.

For this configuration you create a SpeechConfig and IntentRecognizer object in your LUIS application.

Review the code snippet below below and choose the which SubscriptionKey and ServiceRegion would you use to create SpeechConfig object

var config = SpeechConfig.FromSubscription("SubscriptionKey", "ServiceRegion"); 

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Correct Answers: B and C.

Option A is incorrect because the Speech subscription key is used to create a Speech service.

However in the LUIS application, for intent recognition in a given speech, LUIS primary key is used.

Option B is correct because in the LUIS application, for intent recognition in a given speech, LUIS primary key is used.

To get that you go to the LUIS prediction resource section of Azure resource under the Manage blade of the LUIS portal.

Option C is correct because you need to provide the LUIS service location or Azure region where LUIS service is provisioned.

Option D is incorrect because the location for the LUIS service hosting region needs to be provided instead.

Reference:

To learn more about SpeechConfig object creation for intent recognition, use the link given below:

The SpeechConfig and IntentRecognizer objects are used in the Language Understanding (LUIS) application to enable recognition of specific phrases and intent in recorded speech. To create a SpeechConfig object, we need to pass a subscription key and service region as parameters to the FromSubscription method of the SpeechConfig class.

The subscription key is a unique identifier for a Speech resource, which is used to authenticate the request to the Speech service. The subscription key is obtained from the Azure portal when creating a Speech resource. Therefore, option A, which mentions the Speech service key, is the correct answer.

The service region refers to the location where the Speech resource is hosted. The Speech resource is hosted in a specific Azure region, and the service region is used to route the request to the appropriate Speech resource. It is important to note that the service region should be the same as the region where the Speech resource is located. Therefore, option D, which mentions the Speech service location, is the correct answer.

In summary, to create a SpeechConfig object in a LUIS application, we would use the subscription key obtained from the Azure portal for the Speech resource and the service region where the Speech resource is located. Therefore, the correct code snippet to create a SpeechConfig object would be:

javascript
var config = SpeechConfig.FromSubscription("SpeechServiceKey", "SpeechServiceRegion");