pycsspeechtts
Python (py) library to use Microsofts Cognitive Services Speech (csspeech) Text to Speech (tts) API. The cryptic name is the combination of the abbrevations shown above.
Usage:
from pycsspeechtts import TTSTranslator
t = TTSTranslator("YOUR API KEY","westeurope")
data = t.speak(text='The default voice is using Microsoft Neural Voice. When using a neural voice, synthesized speech is nearly indistinguishable from the human recordings.')
with open("file1.wav", "wb") as f:
f.write(data)
data = t.speak('en-gb','Male','I am Max', 'George, Apollo', 'riff-16khz-16bit-mono-pcm', text='I am Max')
with open("file2.wav", "wb") as f:
f.write(data)
You can also use custom voice by specifying isCustom=True and providing a customEndpoint:
from pycsspeechtts import TTSTranslator
t = TTSTranslator("YOUR API KEY","westeurope", isCustom=True, customEndpoint=MyEndpoint)
data = t.speak(language='en-gb',gender='Male',voiceType="ArchieNeural",text="This is a test for custom voice")
See test.py for more samples. Refer to https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/language-support to find the valid values for language, gender, voicetype and output formats.
Metadata
Release files for pycsspeechtts 1.0.8
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 |
|---|---|---|---|---|
| pycsspeechtts-1.0.8.tar.gz | 4.9 kB | Without provenance | Details for pycsspeechtts-1.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pycsspeechtts-1.0.8-py3-none-any.whl | Python 3 | none | any | Details for pycsspeechtts-1.0.8-py3-none-any.whl |
Total release size: 10.2 kB
Release files / pycsspeechtts-1.0.8.tar.gz
| Download URL | pycsspeechtts-1.0.8.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
920a1fd13db655153dea92805ae101a39e85eadee8d97ff1452fcbe41ed46036
|
|
BLAKE2b-256 checksum How to use checksums |
e9817821aeda210239a9a490e587c9f4f0488f8cb723b46b822268e19b0e822f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|
Release files / pycsspeechtts-1.0.8-py3-none-any.whl
| Download URL | pycsspeechtts-1.0.8-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce78477905f59b663b284f5d368d03e0aa3d8d2053eeb13ce5ad812affd52100
|
|
BLAKE2b-256 checksum How to use checksums |
ada955fb1fdcd35fa020616d056abe51db4544a35f72713c703fbf5d058074e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|
Security for pycsspeechtts 1.0.8
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.