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.
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.
Microsoft Bing Speech API offers a Free plan with limited monthly transactions and a Standard plan with more features that are charged 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.
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;
};
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With