Skip to content

Commit

Permalink
Fix C# menu sample code. Fix .net core build command in README.md (#910)
Browse files Browse the repository at this point in the history
Closes #909 . Please look at issue #909 for the full details. Thanks and happy new year!
  • Loading branch information
dargilco authored Jan 4, 2021
1 parent 9219a56 commit 19e50b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion samples/csharp/dotnetcore/console/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ It runs under .NET Core 2.0 on Windows or Linux (see the list of [supported Linu
* If you are using the .NET Core CLI, run the following command from the directory that contains this sample:

```bash
dotnet build helloworld/helloworld.csproj
dotnet build samples/samples.csproj
```

## Run the sample
Expand Down
7 changes: 3 additions & 4 deletions samples/csharp/sharedcontent/console/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ static void Main(string[] args)
Console.WriteLine("W. Keyword recognizer.");
Console.WriteLine("X. Speech synthesis with source language auto detection.");
Console.WriteLine("Y. Remote Conversation for an async job.");
Console.WriteLine("Z. Speech recognition with file input and a switch to secondary region.");

Console.Write(prompt);

Expand Down Expand Up @@ -160,13 +161,11 @@ static void Main(string[] args)
SpeechSynthesisSamples.SynthesisWithAutoDetectSourceLanguageAsync().Wait();
break;
case ConsoleKey.Y:
SpeechRecognitionSamples.RecognitionOnceWithFileAsyncSwitchSecondaryRegion().Wait();
RemoteConversationSamples.RemoteConversationWithFileAsync().Wait();
break;

case ConsoleKey.Z:
RemoteConversationSamples.RemoteConversationWithFileAsync().Wait();
SpeechRecognitionSamples.RecognitionOnceWithFileAsyncSwitchSecondaryRegion().Wait();
break;

case ConsoleKey.D0:
Console.WriteLine("Exiting...");
break;
Expand Down

0 comments on commit 19e50b1

Please sign in to comment.