Skip to main content

marytts-cli

A command-line client for the HTTP server of the MaryTTS Text-to-Speech System implemented in Python 3.

Table of Contents

About

The marytts-cli command-line client for the MaryTTS Text-to-Speech System is a handy tool for experimenting with the TTS server itself and for simplifying the automation process of regular TTS tasks.

It performs a query to the HTTP server of MaryTTS with a range of configurable parameters and returns the server's response. Input data for the query is read from stdin while parameters are set by invoking their corresponding command-line arguments.

If the query was successful, received output data is written to stdout and the program terminates with exit code 0. Otherwise, an error message is written to stderr and the program terminates with exit code 1.

Installation

To install the required requests library for Python 3, run:

pip install -r requirements.txt

Usage

usage: marytts-cli [-h] [--audio AUDIO] [--input INPUT] [--locale LOCALE]
                   [--output OUTPUT] [--url URL] [--voice VOICE]

A command-line client for the HTTP server of the MaryTTS Text-To-Speech System.

optional arguments:
  -h, --help       show this help message and exit
  --audio AUDIO    set format of MaryTTS audio output
  --input INPUT    set type of MaryTTS input
  --locale LOCALE  set identifier of Locale
  --output OUTPUT  set type of MaryTTS output
  --url URL        set request URL
  --voice VOICE    set name of MaryTTS voice

Example

echo "Hello World!" | ./marytts-cli > output.wav

Contribution

Pull requests, patches and feedback are always welcome. Feel free to use the issue tracker or to contact the author.

Author

trevor <trevor@destroyed.today>

License

Distributed under the MIT License. See LICENSE for more information.

Release files for marytts-cli 0.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 marytts-cli 0.0
File Size Uploaded
marytts-cli-0.0.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for marytts-cli 0.0
File Interpreter ABI Platform
marytts_cli-0.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.5 kB

Release files / marytts-cli-0.0.tar.gz

Download URL marytts-cli-0.0.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bb6044bcf12ba915b388860afdda43742457599913b8c10a153f9ec97c8192cb
BLAKE2b-256 checksum
How to use checksums
f2d3c6a98bd1fc5fe0bc8899d17033c7d4824629a0c7f96ee06fbcc0f860d9bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

Release files / marytts_cli-0.0-py3-none-any.whl

Download URL marytts_cli-0.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4e8a141ef3ded17ac207db2b2441e67819ecfdb7a5a66c7bd4bd2e9fee71ba2f
BLAKE2b-256 checksum
How to use checksums
0f7e50fef4d3b82cd5692fbb8edf266eaaff30fd81943d51d074deedefe29be3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

Release history Release notifications | RSS feed

This release

0.0 This release

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