Skip to content

Commit ad4581c

Browse files
committed
Removed limited session details, SDK manages this.
1 parent 37e6c92 commit ad4581c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/cognitive-services/Speech-Service/how-to-choose-recognition-mode.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: speech-service
1010
ms.topic: conceptual
11-
ms.date: 01/13/2020
11+
ms.date: 03/10/2020
1212
ms.author: dapine
1313
zone_pivot_groups: programming-languages-set-two
1414
---
@@ -28,7 +28,7 @@ At the end of one recognized utterance, the service stops processing audio from
2828
For more information on using the `RecognizeOnceAsync` function, see the [.NET Speech SDK docs](https://docs.microsoft.com/dotnet/api/microsoft.cognitiveservices.speech.speechrecognizer.recognizeonceasync?view=azure-dotnet#Microsoft_CognitiveServices_Speech_SpeechRecognizer_RecognizeOnceAsync).
2929

3030
```csharp
31-
var result = await recognizer.RecognizeOnceAsync().ConfigureAwait(false);
31+
var result = await recognizer.RecognizeOnceAsync();
3232
```
3333

3434
::: zone-end
@@ -67,7 +67,7 @@ For additional languages, see the [Speech SDK reference docs](speech-to-text.md#
6767

6868
## Continuous
6969

70-
If you need long-running recognition, use the start and corresponding stop functions for continuous recognition. The start function will start and continue processing all utterances until you invoke the stop function, or until too much time in silence has passed. When using the continuous mode, be sure to register to the various events that will fire upon occurrence. For example, the "recognized" event fires when speech recognition occurs. You need to have an event handler in place to handle recognition. A limit of 10 minutes of total speech recognition time, per session is enforced by the Speech service.
70+
If you need long-running recognition, use the start and corresponding stop functions for continuous recognition. The start function will start and continue processing all utterances until you invoke the stop function, or until too much time in silence has passed. When using the continuous mode, be sure to register to the various events that will fire upon occurrence. For example, the "recognized" event fires when speech recognition occurs. You need to have an event handler in place to handle recognition.
7171

7272
::: zone pivot="programming-language-csharp"
7373

@@ -83,10 +83,10 @@ recognizer.Recognized += (s, e) =>
8383
};
8484

8585
// Start continuous speech recognition
86-
await recognizer.StartContinuousRecognitionAsync().ConfigureAwait(false);
86+
await recognizer.StartContinuousRecognitionAsync();
8787

8888
// Stop continuous speech recognition
89-
await recognizer.StopContinuousRecognitionAsync().ConfigureAwait(false);
89+
await recognizer.StopContinuousRecognitionAsync();
9090
```
9191

9292
::: zone-end

0 commit comments

Comments
 (0)