Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 2.71 KB

File metadata and controls

37 lines (28 loc) · 2.71 KB

Quickstart: Transcribe conversations in C# under .NET Framework for Windows

This sample demonstrates how to transcribe conversations with C# under the .NET Framework (version 4.6.1 or above) using the Speech SDK for Windows. See the accompanying article on the SDK documentation page which describes how to build this sample from scratch in Visual Studio 2017.

Prerequisites

Build the sample

  • By building this sample you will download the Microsoft Cognitive Services Speech SDK. By downloading you acknowledge its license, see Speech SDK license agreement.
  • Download the sample code to your development PC.
  • Start Microsoft Visual Studio 2017 and select File > Open > Project/Solution.
  • Navigate to the folder containing this sample, and select the solution file contained within it.
  • Edit the Program.cs source:
    • Replace the string YourSubscriptionKey with your own subscription key. Use the Speech resource in Azure (not the Speech Recognition resource).
    • Replace the string YourServiceRegion with the service region of your subscription. Make sure the region in your Azure resource matches the region you put into the sample, otherwise you'll get a 401 unauthorized access error.
  • Set the active solution configuration and platform to the desired values under Build > Configuration Manager:
    • On a 64-bit Windows installation, choose x64 as active solution platform.
    • On a 32-bit Windows installation, choose x86 as active solution platform.
  • Press Ctrl+Shift+B, or select Build > Build Solution.

Run the sample

To debug the app and then run it, press F5 or use Debug > Start Debugging. To run the app without debugging, press Ctrl+F5 or use Debug > Start Without Debugging.

References