GithubHelp home page GithubHelp logo

supersu-man / pyt2s Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.44 MB

The Python Text to Speech library you've been looking for.

Home Page: http://sumanth.dev/pyt2s/

License: MIT License

Python 100.00%
python text-to-speech tts

pyt2s's Introduction

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)
    

pyt2s's People

Contributors

supersu-man avatar

Stargazers

Jahnavi M avatar

Watchers

 avatar

pyt2s's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.