Closed ManishTiwari-cloud closed 3 years ago
Apologies for the late reply here
This repo is for the various docs under https://docs.microsoft.com/javascript/api
Your problem seems to be with the microsoft-cognitiveservices-speech-sdk package. Issues for this package can be logged at https://github.com/Microsoft/cognitive-services-speech-sdk-js
I have integrated Microsoft azure speech to text in my angular 8 application.
It is working on locally but when i deployed my code to test env it's giving me error 'Cannot access 'vn' before initialization' on this line const sdk = require('microsoft-cognitiveservices-speech-sdk');.
My test env is unsecured network.
Below is my code:
starAudioRecording() { const audioConstraints = { audio: true, video: false }; navigator.mediaDevices .getUserMedia(audioConstraints) .then(this.successCallback.bind(this), this.errorCallback.bind(this)); }