This repository was archived by the owner on Nov 16, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -98,23 +98,6 @@ function RecognizerStop(SDK, recognizer) {
9898## ES6 Module Usage
9999``` javascript
100100import * as SDK from ' microsoft-speech-browser-sdk' ;
101-
102- function RecognizerSetup (recognitionMode , language , format , subscriptionKey ) {
103- let recognizerConfig = new SDK.RecognizerConfig (
104- new SDK.SpeechConfig (
105- new SDK.Context (
106- new SDK.OS (navigator .userAgent , " Browser" , null ),
107- new SDK.Device (" SpeechSample" , " SpeechSample" , " 1.0.00000" ))),
108- recognitionMode, // SDK.RecognitionMode.Interactive
109- language, // Supported laguages are specific to each recognition mode. Refer to docs.
110- format); // SDK.SpeechResultFormat.Simple (Options - Simple/Detailed)
111-
112- // Alternatively use SDK.CognitiveTokenAuthentication(fetchCallback, fetchOnExpiryCallback)
113- let authentication = new SDK.CognitiveSubscriptionKeyAuthentication (subscriptionKey);
114-
115- // return SDK.Recognizer.Create(recognizerConfig, authentication);
116- return SDK .CreateRecognizer (recognizerConfig, authentication);
117- }
118101```
119102
120103## Try the sample out
You can’t perform that action at this time.
0 commit comments