Skip to content
Branch: master
Find file History
Bert Casper
Latest commit de10a95 Sep 30, 2019

Text-to-speech (TTS) - Python Samples

This repository includes Python code samples for text-to-speech, a REST endpoint made available through Microsoft Speech Services. Each sample corresponds to a Quickstart activity on


Here's what you'll need to run these samples:

  • Your favorite IDE or text editor
  • Python 2.7.x or 3.x
  • An Azure subscription with Speech Services enabled. Get one for free!

Code samples

To use these samples, follow these instructions:

  • Create a new project using your favorite IDE or text editor
  • Copy the code from the sample into a file named
  • Set your subscription key
  • From the working directory, run: pip install -r requirements.txt
  • Run the sample: python


You can’t perform that action at this time.