Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Text-To-Speech with MSSpeak

Project Description

Microsoft Speech Bing Documentation:

Python Bing Speech

python-msspeak is a library to synthesize text into human sounding speech using Microsoft Cognitive Services.

In order to utilize this service you must sign up for Microsoft Cognitive service and register an application. More information on creating a Microsoft account is located at the getting started with Text to Speech page.


A quick-and-dirty script to utilize the python-msspeak library.

import msspeak

subscription_key = 'XXXXXXXXXXXX'

tts_msspeak = msspeak.MSSpeak(subscription_key, '/tmp/')
output_filename = tts_msspeak.speak("This is the text I will speak to you", "en-US")

print "Recorded TTS to %s" % output_filename


Install, upgrade and uninstall with these commands:

$ pip install python-msspeak
$ pip install --upgrade python-msspeak
$ pip uninstall python-msspeak

Example usage and output


$ python-msspeak --subscription_key=<subscription_key> -t <text> [-d <directory>] [-url <service_url>] [-h]


$ msspeak --subscription_key=XXXXXXXXX -t "Salut, Vous vous appelez comment?" -l fr

Output :

$ Recorded TTS to /tmp/MSTRANSLATE-8895934760117809679-fr.mp3


Feedback are more than welcome, post bugs and feature requests on github:

Extra information

Newfies-Dialer, an open source Auto Dialer software, uses this module to synthetize audio files being play to the end-user. Further information about Newfies-Dialer can be found at

This module is built and supported by Star2Billing:

Source download

The source code is currently available on github. Fork away!


  • [ ] Rename package to python-bing-speech


0.2.1 (2017-03-03)

  • Support Python 3

0.2.0 (2017-02-21)

  • Support switch to Azure portal

1.1.4 (2017-01-20)

  • fix request deps don’t force single version

0.1.1 (2015-10-08)

  • Improve Readme and add script to updateversion

0.1.0 (2015-10-06)

  • First release on PyPI.
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
python-msspeak-0.3.1.tar.gz (17.0 kB) Copy SHA256 Checksum SHA256 Source Mar 3, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting