Using Azure Speech SDK with Azure Active Directory Authentication
This is a simple node application to demostrate how to use Speech SDK for transcription with Azure Active Directory token.
Prerequisites
- A Speech Service resource in Azure with custom domain.
- A Service Principal for Cognitive Services access permissions
How to run this code
- Clone the repository
- Create a .env file in SpeechToTextWithAADToken directory and create a variable RESOURCE_ID="" in that file and set your speech resource ID
- Copy the wav file you want to transcribe in SpeechToTextWithAADToken directory
- When running first time you must run command "npm install" in the terminal
- Run the program by running the command "node SpeechRecognition.js"
- Once program is finished transcribing it will log the output in the terminal