GithubHelp home page GithubHelp logo

python-acapela's Introduction

python-acapela

Author: Arezqui Belaid
Description:Python wrapper for text-to-speech synthesis with Acapela
Company:Developed by Star2Billing http://www.star2billing.com
Latest Version Downloads Supported Python versions License

Python Acapela Wrapper

python-acapela is a library to produce a text-to-speech file using Acapela web services.

Quickstart

import acapela

ACCOUNT_LOGIN = 'EVAL_XXXX'
APPLICATION_LOGIN = 'EVAL_XXXXXXX'
APPLICATION_PASSWORD = 'XXXXXXXX'
SERVICE_URL = 'http://vaas.acapela-group.com/Services/Synthesizer'

tts_acapela = acapela.Acapela(ACCOUNT_LOGIN, APPLICATION_LOGIN, APPLICATION_PASSWORD, SERVICE_URL, '22k', '/tmp/')
tts_acapela.prepare(text=u"Hola! Buenos días", lang='ES', gender='W', intonation='NORMAL')
output_filename = tts_acapela.run()

print "Recorded TTS to %s" % output_filename

Features

Installation

Install, upgrade and uninstall python-acapela.py with these commands:

$ sudo pip install python-acapela
$ sudo pip install --upgrade python-acapela
$ sudo pip uninstall python-acapela

Or if you don't have pip:

$ sudo easy_install python-acapela

Example usage and output

$ Usage: python-acapela -acclogin <accountlogin> -applogin <applicationlogin> -p <password> -t <text> [-q <quality>] [-d <directory>] [-url <service_url>] [-h]

$ Output : Recorded TTS to /tmp/ACAPELA-8895934760117809679-ES.mp3

Feedback

Your feedback is more than welcome. Write email to [email protected] or post bugs and feature requests on github:

http://github.com/areski/python-acapela/issues

Extra information

Newfies-Dialer, an open source Auto Dialer software, uses this module to synthetize audio files being play to the end-user. Further information about Newfies-Dialer can be found at http://www.newfies-dialer.org

This module is built and supported by Star2Billing : http://www.star2billing.com

Similar library in Ruby : https://github.com/mheld/acapela-ruby

Source download

The source code is currently available on github. Fork away!

http://github.com/areski/python-acapela

python-acapela's People

Contributors

areski avatar jonathan-roper avatar movermeyer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

python-acapela's Issues

module' object has no attribute 'Acapela'

When I try and run example.py I get the error:

Traceback (most recent call last):
File "acapela.py", line 79, in
test_acapela()
File "acapela.py", line 42, in test_acapela
tts_acapela = acapela.Acapela(ACCOUNT_LOGIN, APPLICATION_LOGIN, APPLICATION_PASSWORD, SERVICE_URL, QUALITY, DIRECTORY)
AttributeError: 'module' object has no attribute 'Acapela'

Acapela attach strange information before the given text

Hi! I used the python script for a while without a problem, but today the generated audio has some strange number before the given text. The generated audio says something like VCT=100s PD=160 and then it says the correct given text.
Can you confirm that?

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.