Skip to main content

Python Acapela Text-To-Speech

Project description

==============
python-acapela
==============

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


.. image:: https://pypip.in/version/python-acapela/badge.svg
:target: https://pypi-hypernode.com/pypi/python-acapela/
:alt: Latest Version

.. image:: https://pypip.in/download/python-acapela/badge.svg
:target: https://pypi-hypernode.com/pypi/python-acapela/
:alt: Downloads

.. image:: https://pypip.in/py_versions/python-acapela/badge.svg
:target: https://pypi-hypernode.com/pypi/python-acapela/
:alt: Supported Python versions

.. image:: https://pypip.in/license/python-acapela/badge.svg
:target: https://pypi-hypernode.com/pypi/python-acapela/
:alt: License


Python Acapela Wrapper
======================

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

.. _Acapela: http://acapela-vaas.com/


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
--------

* Produce text to speech in different languages, see list of languages supported :
http://www.acapela-vaas.com/ReleasedDocumentation/voices_list.php

* Support different type of audio quality 22Hz, 8Hz

* Provide voices of different gender and intonation


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
areski@gmail.com 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






Changelog
-------


0.2.4 (2015-04-15)
------------------

* Fix UK language


0.2.3 (2015-04-15)
------------------

* Fix US language


0.2.1 (2012-10-03)
------------------

* Add License file, Manifest, Authors


0.2 (2012-10-03)
----------------

* Improve setup.py, credits to https://github.com/jezdez/django_compressor/blob/develop/setup.py
* PEP8 Fixes


0.1 (2012-05-26)
----------------

* First release.

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

python-acapela-0.2.5.tar.gz (12.6 kB view details)

Uploaded Source

File details

Details for the file python-acapela-0.2.5.tar.gz.

File metadata

File hashes

Hashes for python-acapela-0.2.5.tar.gz
Algorithm Hash digest
SHA256 18c718fb946bfa1a4c5bf6c038a9408f06af69707fd1f6dae460c03ae94359db
MD5 d4672954ac605eb562b458f3068f64f3
BLAKE2b-256 432535dceb9632660da5b50c923aa6467cac20219f3b3ead3277af95fdb039ee

See more details on using hashes here.

Supported by

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