Skip to content

Commit b158870

Browse files
authored
Fixed mismatch between instruction and the actual code
Fixed mismatch between instruction and the actual code. The parameter order should be speechConfig and audioConfig.
1 parent fb59694 commit b158870

File tree

1 file changed

+1
-1
lines changed
  • articles/ai-services/speech-service/includes/how-to/recognize-speech

1 file changed

+1
-1
lines changed

articles/ai-services/speech-service/includes/how-to/recognize-speech/csharp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ You can initialize `SpeechConfig` in a few other ways:
4545
4646
## Recognize speech from a microphone
4747

48-
To recognize speech by using your device microphone, create an [`AudioConfig`](/dotnet/api/microsoft.cognitiveservices.speech.audio.audioconfig) instance by using the `FromDefaultMicrophoneInput()` method. Then initialize the[`SpeechRecognizer`](/dotnet/api/microsoft.cognitiveservices.speech.speechrecognizer) object by passing `audioConfig` and `speechConfig`.
48+
To recognize speech by using your device microphone, create an [`AudioConfig`](/dotnet/api/microsoft.cognitiveservices.speech.audio.audioconfig) instance by using the `FromDefaultMicrophoneInput()` method. Then initialize the [`SpeechRecognizer`](/dotnet/api/microsoft.cognitiveservices.speech.speechrecognizer) object by passing `speechConfig` and `audioConfig`.
4949

5050
```csharp
5151
using System;

0 commit comments

Comments
 (0)