Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

softawaregmbh/cognitiveservice-speech-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Speech Capture application to demonstrate Azure Cognitive Services

I regularly demonstrate how to use the Microsoft Azure Cognitive Services and tried to find a way how to send a microphone input stream directly to the Language Understanding Service (LUIS).

So.. here it is. Feel free to use it, any feedback (or pull request) is welcome!

Screenshot of the Speech Client application

Usage

The client is a WPF App (.NET Core), the main entry point can be found in the MainViewModel.cs

MainViewModel.cs

public async Task InitializeAsync()
{
    this.speechRecognizer.SpeechStateChanged += SpeechRecognizer_SpeechStateChanged;
    this.speechRecognizer.IntentRecognized += SpeechRecognizer_IntentRecognized;

    await this.speechRecognizer.StartAsync();
}

Alternatively you can use an overload of the StartAsync method to provide a pre-recorded file instead of the microphone input.

await this.speechRecognizer.StartAsync("C:\temp.wav");

appsettings.json

Please specify your Subscription key, your LUIS App Id and the Azure region in the appsettings.json file:

{
  "SpeechRecognizerSettings": {
    "SubscriptionKey": "xxx",
    "Region": "westeurope",
    "LuisAppId": "yyy"
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages