This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Microsoft Translator Documentation: http://msdn.microsoft.com/en-us/library/dd576287.aspx

Python Microsoft Speak

python-msspeak is a library to produce a text-to-speech file using Microsoft Translate web services.

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

Quickstart

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

client_id is the Microsoft Translator API client_id, and client_secret is the Microsoft Translator API client_secret:

import msspeak

client_id = 'XXXXXXXXXXXX'
client_secret = 'YYYYYYYYYYYYYY'

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

print "Recorded TTS to %s" % output_filename

Features

  • Produce text to speech in different languages.

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 --client_id=<client_id> --client_secret=<client_secret> -t <text> [-d <directory>] [-url <service_url>] [-h]

Example:

$ msspeak --client_id=XXXXXXXXX --client_secret=YYYYYYYYYY -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 http://www.newfies-dialer.org

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

Source download

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

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

API Methods

Microsoft Translator API Reference: http://msdn.microsoft.com/en-us/library/ff512404.aspx

  • addTranslation (not implemented)
  • addTranslationArray (not implemented)
  • breakSentences (not working)
  • detect (not implemented)
  • detectArray (not implemented)
  • getAppIdToken (not implemented) This is a legacy, replaced by Access Token
  • getLanguageNames (not implemented)
  • getLanguagesForSpeak (not implemented)
  • getLanguagesForTranslate (not implemented)
  • getTranslations (not implemented)
  • getTranslationsArray (not implemented)
  • speak: implemented
  • translate (not implemented)
  • translateArray (not implemented)
  • translateArray2 (not implemented)

History

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

0.1.3

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
python-msspeak-0.1.3.tar.gz (15.3 kB) Copy SHA256 Checksum SHA256 Source Oct 8, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development 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