Metadata-Version: 2.1
Name: pyt2s
Version: 0.0.2
Summary: Python library you need for text to speech.
Author-email: Sumanth Perambuduri <sumanthpera444@gmail.com>
Project-URL: Homepage, https://github.com/supersu-man/pyt2s
Project-URL: Issues, https://github.com/supersu-man/pyt2s/issues   
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE

# 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](https://github.com/chrisjp/tts). 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)
    ```
