Giter Club home page Giter Club logo

cognitive-speech's Introduction

Cognitive Speech

Azure cognitive services has a number of easy to use capabilities. This demonstration uses cognitive speech to transcribe audio.

A number of organisations would have uses for the automated transcription of audio. For example, financial services organisations often need to demonstrate that their selling processes are compliant with local regulations. So, the use of audio transcription can save a lot of manual effort listening to recordings of customer and advisor interactions. Sentiment analysis may also be used to flag specific recordings - allowing supervisors to concentrate on customer interactions which are different than normal.

Warning

The cognitive services speech transcription API has now moved to version v3.0. Much of this has been written to v2.1 and there are issues with the webhooks for the v2.1 version in this demo. I have recently updated the code to v3.0, but this repository has not yet been updated. The new version of the API can be found and tested here https://centralus.dev.cognitive.microsoft.com/docs/services/speech-to-text-api-v3-0/operations/CopyModelToSubscription

This Demonstration

This demonstation is a stand-alone one which uses cognitive services speech recognition with Azure serverless technologies to demonstrate audio transcription. To keep the demonstration self-contained, it uses audio MP3 file attachments to an email and then responds with the transcription in an email reply. This is not exactly how it would be done in production, but can easily be demonstrated.

alt text

More detail on the demonstration can be found here demonstration flow

This demonstration makes use of the Azure Cognitive Services Speech Service - specifically the batch transcription REST API. This is quite a simple set of REST APIs that allow you to do audio transcription and sentiment analysis. Here is a quick summary.

Getting Started

This demonstration requires access to an Azure subscription. If you don't have an Azure subscription, a trial one can be created here https://azure.microsoft.com/en-gb/free/

The demonstration requires a number of resources:

  1. Cognitive services speech account
  2. Key vault
  3. A storage account for blobs
  4. An email account to integrate
  5. Logic apps

Detailed instructions on building the demonstration are here

Extending this demonstration

This demonstration is pretty basic in terms of what it does and how it works. Other areas where this may be extended could be:

  1. Send a request received aknowledgement receipt to the origniator - useful for long transcriptions which could take some minutes
  2. Use the sentiment analysis capability that is built into the batch API. For long transcriptions, the results are broken up into speech segments (roughly analogous to paragraphs) and sentiment can be returned for each of these segments. The demonstration could be extended to build a spreadsheet or graph of the sentiment across the timeline of the transcription. A practical use of this could be sentiment for customer interviews, so you can see at a glance where the sentiment changes across a number of minutes of an interview.
  3. Handling problems. Right now this demonstration only looks at the positive path. It may be useful to send response emails in the case of where something has gone wrong.
  4. Deleting old transcriptions from the batch interface. See batch transcription
  5. Other integrations besides email.

cognitive-speech's People

Contributors

jometzg avatar

Watchers

James Cloos avatar  avatar

Forkers

nikkh

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.