Python library you need for text to speech.
Project description
pyt2s
The Python Text to Speech library you've been looking for.
A simple python library to convert texts to voice using different TTS services.
About
This python library is heavily inpired from Chris Phillips's php tts library. I wanted to use a Python TTS library for one of my projects, but I found none that is simply plug-and-play, supports multiple voices, includes both genders, and doesn’t require me to download trained models of tens of GBs.
Services
- Acapela
- Cepstral
- IBM Watson
- Oddcast
- Stream Elements
- Stream Labs
- Voice Forge
Usage
- Install using
pip install pyt2s - Request TTS and saving as mp3
from pyt2s.services import stream_elements obj = stream_elements.StreamElements() # Default Voice data = obj.requestTTS('Lorem Ipsum is simply dummy text.') # Custom Voice data = obj.requestTTS('Lorem Ipsum is simply dummy text.', 'Russell') with open('output.mp3', '+wb') as file: file.write(data)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyt2s-0.0.3.tar.gz.
File metadata
- Download URL: pyt2s-0.0.3.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24f5c88fd8ed4c6bd54187a65e6986155f5ebe14fd903e9b15b656bd4381443e
|
|
| MD5 |
a8281786eba020e7202abcad73407533
|
|
| BLAKE2b-256 |
1cd223e9021821d19533ff3578fa4aec2e13061395cc72e15877f3f2412c3c3f
|
File details
Details for the file pyt2s-0.0.3-py3-none-any.whl.
File metadata
- Download URL: pyt2s-0.0.3-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26de376e9b334e11d00c76acd7b32518c6b9e61348b61f3fd339ab0664141d1e
|
|
| MD5 |
d59d1e6197cec620d6a80665631140f1
|
|
| BLAKE2b-256 |
51258f15449881f0dd638738818a38f97ca565d5e20e8ac718d77e69bbe034b1
|