Skip to main content

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

pyt2s-0.0.3.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyt2s-0.0.3-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

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

Hashes for pyt2s-0.0.3.tar.gz
Algorithm Hash digest
SHA256 24f5c88fd8ed4c6bd54187a65e6986155f5ebe14fd903e9b15b656bd4381443e
MD5 a8281786eba020e7202abcad73407533
BLAKE2b-256 1cd223e9021821d19533ff3578fa4aec2e13061395cc72e15877f3f2412c3c3f

See more details on using hashes here.

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

Hashes for pyt2s-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 26de376e9b334e11d00c76acd7b32518c6b9e61348b61f3fd339ab0664141d1e
MD5 d59d1e6197cec620d6a80665631140f1
BLAKE2b-256 51258f15449881f0dd638738818a38f97ca565d5e20e8ac718d77e69bbe034b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page