Skip to main content

Text-To-Speech with MSSpeak

Project description

Author:

Arezqui Belaid and Joshua Patten

Description:

Microsoft Translator API module for Python

Documentation:

RTD https://python-msspeak.readthedocs.org

Contributors:

https://github.com/newfies-dialer/python-msspeak/graphs/contributors

License:

MIT

https://img.shields.io/travis/newfies-dialer/python-msspeak.svg https://img.shields.io/pypi/v/python-msspeak.svg

Microsoft Speech Bing Documentation: https://www.microsoft.com/cognitive-services/en-us/speech-api/documentation/API-Reference-REST/BingVoiceOutput

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.

Quickstart

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

Installation

Install, upgrade and uninstall python-msspeak.py with these commands:

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

Example usage and output

Usage:

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

Example:

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

Output :

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

Feedback

Feedback are more than welcome, post bugs and feature requests on github: http://github.com/newfies-dialer/python-msspeak/issues

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 https://www.newfies-dialer.org

This module is built and supported by Star2Billing: https://www.star2billing.com

Source download

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

https://github.com/newfies-dialer/python-msspeak

Other libraries

TODO

  • [ ] Rename package to python-bing-speech

History

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.

Project details


Download files

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

Source Distribution

python-msspeak-0.2.3.tar.gz (17.0 kB view details)

Uploaded Source

File details

Details for the file python-msspeak-0.2.3.tar.gz.

File metadata

File hashes

Hashes for python-msspeak-0.2.3.tar.gz
Algorithm Hash digest
SHA256 41260900a2800be31f1dd16b2d0d5c51ddf5ee3f0efa33ad0eb69d86359ff525
MD5 ba30a3988923d38e8a8b3ee9ca5c45fd
BLAKE2b-256 09a449c94c4d1d09259679f5e61e5c62cd84563d4c027a01206d92602e8e9dec

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page