Skip to content
Branch: master
Find file History
Type Name Latest commit message Commit time
Failed to load latest commit information.
texttospeech-uwp Refresh *_TemporaryKey.pfx (#297) Jul 4, 2019 update and add samples for SDK release 1.6 (#280) Jun 28, 2019
texttospeech-uwp.sln Update samples wrt. 1.5.0 (#228) May 2, 2019

Text-to-speech UWP sample

This sample demonstrates various forms of synthesizing speech with C# under the Universal Windows Platform using the Speech SDK.


  • A subscription key for the Speech service. See Try the speech service for free.

  • A Windows PC with Windows 10 Fall Creators Update (10.0; Build 16299) or later.

  • Microsoft Visual Studio 2017, Community Edition or higher.

  • The Universal Windows Platform development workload in Visual Studio.

  • Note: processor target ARM is not yet supported.

    You can enable it in Tools > Get Tools and Features.

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.
  • 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.

The app displays a graphical user interface (GUI).

  • Use the Subscription Key text field to enter your subscription key.
  • In the drop-down below, choose the region associated with your subscription.
  • In the drop-down right below the subscription key, choose the synthesis language.
  • In the Text for Synthesizing text field below the region drop-down and language drop-down, enter your text to be synthesized to speech.
  • If you'd like to synthesize to speaker, you can click the Speech Synthesis to Speaker Output button.
  • With the other buttons you can launch a specific speech synthesis scenario.


You can’t perform that action at this time.