Skip to content

Commit e8bda4b

Browse files
committed
Corrected lang identifier, again.
1 parent 19bb08e commit e8bda4b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/cognitive-services/Speech-Service/includes/how-to/speech-to-text-basics/speech-to-text-basics-javascript.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ recognizer.SessionStopped = (s, e) => {
194194

195195
With everything set up, we can call [`stopContinuousRecognitionAsync`](https://docs.microsoft.com/javascript/api/microsoft-cognitiveservices-speech-sdk/speechrecognizer?view=azure-node-latest#stopcontinuousrecognitionasync).
196196

197-
```csharp
197+
```javascript
198198
// Starts continuous recognition. Uses stopContinuousRecognitionAsync() to stop recognition.
199199
recognizer.startContinuousRecognitionAsync();
200200

@@ -208,15 +208,15 @@ When using continuous recognition, you can enable dictation processing by using
208208

209209
To enable dictation mode, use the [`enableDictation`](https://docs.microsoft.com/javascript/api/microsoft-cognitiveservices-speech-sdk/speechconfig?view=azure-node-latest#enabledictation--) method on your [`SpeechConfig`](https://docs.microsoft.com/javascript/api/microsoft-cognitiveservices-speech-sdk/speechconfig?view=azure-node-latest).
210210

211-
```csharp
211+
```javascript
212212
speechConfig.enableDictation();
213213
```
214214

215215
## Change source language
216216

217217
A common task for speech recognition is specifying the input (or source) language. Let's take a look at how you would change the input language to Italian. In your code, find your [`SpeechConfig`](https://docs.microsoft.com/javascript/api/microsoft-cognitiveservices-speech-sdk/speechconfig?view=azure-node-latest), then add this line directly below it.
218218

219-
```csharp
219+
```javascript
220220
speechConfig.speechRecognitionLanguage = "it-IT";
221221
```
222222

0 commit comments

Comments
 (0)