Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Receive data from StartContinuousRecognitionAsync() of Microsoft Cognitive speech client library

Not able to find how to get data from StartContinuousRecognitionAsync() as I want to Receive data So that i can process the data only after a keyword.

like image 514
shubhamsjmit Avatar asked Jul 30 '18 11:07

shubhamsjmit


People also ask

What is Microsoft Cognitiveservices speech?

The Speech service provides speech-to-text and text-to-speech capabilities with an Azure Speech resource. You can transcribe speech to text with high accuracy, produce natural-sounding text-to-speech voices, translate spoken audio, and use speaker recognition during conversations.

Is Microsoft Speech API free?

Microsoft Bing Speech API offers a Free plan with limited monthly transactions and a Standard plan with more features that are charged for.

Which of the following programming language S does Cognite offer SDKs for?

In addition to a well-documented API, Cognite provides connectors and SDKs for many common programming languages and analytics tools, such as Python, JavaScript, Spark, OData (Excel, Power BI), and Grafana. We also offer community SDKs for Scala and . Net.


1 Answers

Try this:

...

recognizer = new SpeechSDK.SpeechRecognizer(speechConfig, audioConfig);

recognizer.startContinuousRecognitionAsync(cb?: () => void, err?: (e: string) => void);

//  The event recognizing signals that an intermediate recognition result is received.
recognizer.recognizing = function(s, e){
    console.log('recognizing text', e.result.text);
};

//  The event recognized signals that a final recognition result is received.
recognizer.recognized = function(s, e){
    console.log('recognized text', e.result.text);
    script += e.result.text;
};
like image 191
MHS Avatar answered Sep 18 '22 17:09

MHS