Skip to main content

A simple command line tool to transform text to speech with AWS.

Project description

audify

A simple command line tool / python helper to convert a body of text to an mp3 using Amazon Polly. To use audify, you must first have AWS credentials set up.

Installation

It is recommended to install audify using pip:

$ pip install audify

Examples

The most common usage will be to pass in a simple text file and get the output:

$ echo "Hello World" > input.txt
$ audify -i input.txt -o output.mp3

You can also pass in text from stdin:

$ echo "Hello World" | audify -i - -o output.mp3

If you want to access audify from a Python script, you can import and call it directly:

from audify import audify

audify(
    input_filename='input.txt',
    output_filename='output.mp3',
)

You can also pass file-like objects:

import io

from audify import audify_fileobj

audify_fileobj(
    fileobj=io.StringIO('Hello World'),
    output_filename='output.mp3',
)

Any voice supported by Amazon Polly can be used:

$ echo "Hello World" | audify -i - -o output.mp3 -v Joey
from audify import audify

audify(
    input_filename='input.txt',
    output_filename='output.mp3',
    voice='Ivy',
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for audify, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size audify-0.0.3-py3-none-any.whl (4.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size audify-0.0.3.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page