MSSpeak - Microsoft Translator Speak for Python
- Author:
Arezqui Belaid and Joshua Patten
- Description:
Microsoft Translator API module for Python
- Documentation:
- Contributors:
https://github.com/newfies-dialer/python-msspeak/graphs/contributors
- License:
MIT
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.
from msspeak 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!
Other libraries
TODO
[ ] Rename package to python-bing-speech
History
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.
Metadata
Release files for python-msspeak 0.6.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python-msspeak-0.6.4.tar.gz | 19.9 kB | Without provenance | Details for python-msspeak-0.6.4.tar.gz |
Release files / python-msspeak-0.6.4.tar.gz
| Download URL | python-msspeak-0.6.4.tar.gz |
|---|---|
| Size | 19.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
658c51cfca8b1e8f986a15d7d12b56141d18847737ec7b7e26b87ab31911f627
|
|
BLAKE2b-256 checksum How to use checksums |
c10036d44b6ec379d80884b536958d03cfdbc523c8392c9b106326c3ef94c2a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
|
Security for python-msspeak 0.6.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.