Skip to main content

Build status Test coverage PyPI version Python versions License

Python script that lets you easily convert passed text to synthesized audio files, with help of Amazon’s IVONA. All you need is a pair of keys and this script. Yes, that’s literally everything you need to never speak again. If that’s your thing of course.

If you want to use IVONA Speech Cloud directly inside your Python project then you should have a look at python-ivona-api, which this script uses in the background.

Installation

>From PyPI (recommended):

$ pip install ivona_speak

With git clone:

$ git clone https://github.com/Pythonity/ivona-speak
$ pip install -r ivona-speak/requirements.txt
$ cd ivona-speak/bin

Usage

$ ivona-speak --help

  Easily convert passed text to synthesized audio files, with help of
  Amazon's IVONA. All you need is a pair of auth keys.

  See https://github.com/Pythonity/ivona-speak for more info.

Options:
  --help  Show this message and exit.

Commands:
  synthesize*  Synthesize passed text and save it as an...
  list-voices  List available Ivona voices

Examples

You can provide keys either explicitly:

$ ivona-speak --access-key 'YOUR_ACTUAL_ACCESS_KEY' --secret-key 'YOUR_ACTUAL_SECRET_KEY' list-voices

or export them as environment variables:

$ export IVONA_ACCESS_KEY='...'
$ export IVONA_SECRET_KEY='...'
$ ivona-speak list-voices

The default subcommand is synthesize, so these do the same:

$ ivona-speak synthesize -o hello_world.mp3 'Hello world!'
$ ivona-speak -o hello_world.mp3 'Hello world!'

I want someone to say ‘Hello world!’, and say it quick:

$ ivona-speak synthesize -o hello_world.mp3 'Hello world!'

She sounds so nice. I want someone special to respond her:

$ ivona-speak synthesize -o response.mp3 -n Joey 'How you doin?'

Tests

Package was tested with the help of py.test and tox on Python 2.7, 3.4, 3.5 and 3.6 (see tox.ini).

Code coverage is available at Coveralls.

To run tests yourself you need to set environment variables with secret and access keys before running tox inside the repository:

$ pip install tox
$ export IVONA_ACCESS_KEY='..'
$ export IVONA_SECRET_KEY='..'
$ tox

Contributions

Package source code is available at GitHub.

Feel free to use, ask, fork, star, report bugs, fix them, suggest enhancements, add functionality and point out any mistakes. Thanks!

Authors

Developed and maintained by Pythonity, a group of Python enthusiasts who love open source, have a neat blog and are available for hire.

Written by Paweł Adamczak.

Released under MIT License.

Metadata

Release files for ivona_speak 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ivona_speak 0.3.0
File Size Uploaded
ivona_speak-0.3.0.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ivona_speak 0.3.0
File Interpreter ABI Platform
ivona_speak-0.3.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 15.8 kB

Release files / ivona_speak-0.3.0.tar.gz

Download URL ivona_speak-0.3.0.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
36ba1267df7f8ffd366c6d3507a979e4bd835a8b1cc18de77c0981b605117b27
BLAKE2b-256 checksum
How to use checksums
07438d1becf8d389f1fba96f2864baa7052e107a2a5b3ed9d260e6ed1e5a46a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / ivona_speak-0.3.0-py2.py3-none-any.whl

Download URL ivona_speak-0.3.0-py2.py3-none-any.whl
Size 8.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
25750059c9e4ba784ccb7b37a15424c2a40115719053abee2d4442c319ed6bcb
BLAKE2b-256 checksum
How to use checksums
fd79909300272142cec43cb4d7267bbeb88064b16374defdbc1c8f786ed459f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page