Giter Site home page Giter Site logo

tom1milman / azure-cognitive-services-keyword-spotting-for-uwp Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 4.92 MB

A work around for the Microsoft Azure Cognitive Services Keyword Spotting for UWP Apps

License: MIT License

C# 100.00%
uwp cognitive-services azure-cognitive-services microsoft-cognitive-services keyword-spotting xamarin-forms xamarin-uwp uwp-apps workaround kws

azure-cognitive-services-keyword-spotting-for-uwp's Introduction

Azure Cognitive Services Keyword Spotting for UWP

This is a workaround to make the Microsoft Azure Cognitive-Services Keyword Spotting work with the UWP application.

Microsoft's Cognitive Serivces do not support keyword spotting on UWP applications:

Wake Word (Keyword Spotter/KWS) functionality might work with any microphone type, official KWS support, however, is currently limited to the microphone arrays found in the Azure Kinect DK hardware or the Speech Devices SDK. There is no official support for KWS in UWP: https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/scenario-availability. Where UWP is supported, it is explicitly called out. we will take it as a feature request into our planning, but for the next SDK update (sometime in September probably).

This is a quote from the Microsoft developers.

In summary, KWS is not currenlty supported in UWP, so this is a workaounrd for now.

What it does?

A solution I found is to use a background console that listens and does the KWS part.

On startup, the UWP application starts a console process (Listener). The Listener opens a connection with the UWP, and listens for the KWS. Once the Listener recognizes the keyword, it's listening for utterances. Then it sends a request to the UWP with the recognized utterance as a string.

Media

Gifs

Keyword spotting: Recordit GIF

KWS toggling: Recordit GIF

Microphone button: Recordit GIF

Screenshots

UWP view: Kws UWP

Console (Listener) view: Kws Console

Videos

Coming soon

Setting up

Coming soon.

Using

Once up and running, use the keyword to activate the listening mode, or use the microphone button. Say something, and the UWP will show the result after it's recognized. You can use the Toggle KWS to toggle on/off the keyword spotting function.

Credits

Huge thanks to StefanWickDev and his work on UWP-FullTrust. Check out his blog for more information about UWP FullTrust and communication with other apps.

License

License

MIT license, Copyright 2019 © Tom Milman

azure-cognitive-services-keyword-spotting-for-uwp's People

Contributors

tom1milman avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.