Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 664c6f8

Browse files
committed
update readme
1 parent d214edb commit 664c6f8

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

README.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -98,23 +98,6 @@ function RecognizerStop(SDK, recognizer) {
9898
## ES6 Module Usage
9999
```javascript
100100
import * 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

0 commit comments

Comments
 (0)