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.4.tar.gz (10.7 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.4-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file pyt2s-0.0.4.tar.gz.

File metadata

  • Download URL: pyt2s-0.0.4.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pyt2s-0.0.4.tar.gz
Algorithm Hash digest
SHA256 c44d662677f290f8e85494ab54a1d965e20b9e429a2ae63a96afcd49ef52f086
MD5 ff0050956bd665d4d5b567383895cb5e
BLAKE2b-256 22c3959b7d11faa092cbc76a2667759b129d76681de4cdd7165b923a7abc78ce

See more details on using hashes here.

File details

Details for the file pyt2s-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: pyt2s-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pyt2s-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ff4b1e65b4f176ea4ad6fbe5ff655e2098d2b5f5a56301b07672c408a4f2c226
MD5 9152e3796d4ab29dba4de3eb3065f3bf
BLAKE2b-256 6bd7284aef66cf5344cd0798e62eaec6994778e48eee1dfb0e933d62c364e1d7

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