Skip to main content

Python based toolkit for writing Command-Line Interface applications

Project description

t2s

t2s (Text-to-Speech), a Python library and CLI tool to interface with Google Translate's text-to-speech API. Write spoken mp3 data to a file, a file-like object (bytestring) for further audio manipulation, or stdout. Or simply pre-generate Google Translate TTS request URLs to feed to an external program. http://t2s.readthedocs.org/

PyPI version Python versions Tests workflow codecov Commits Since PyPi Downloads Buy me a Coffee

Features

  • Customizable speech-specific sentence tokenizer that allows for unlimited lengths of text to be read, all while keeping proper intonation, abbreviations, decimals and more;
  • Customizable text pre-processors which can, for example, provide pronunciation corrections;

Installation

$ pip install t2s

Quickstart

Command Line:

$ t2s-cli 'hello' --output hello.mp3

Module:

>>> from t2s import T2S
>>> tts = T2S('hello')
>>> tts.save('hello.mp3')

See http://t2s.readthedocs.org/ for documentation and examples.

Disclaimer

This project is not affiliated with Google or Google Cloud. Breaking upstream changes can occur without notice. This project is leveraging the undocumented Google Translate speech functionality and is different from Google Cloud Text-to-Speech.

Project

Licence

The MIT License (MIT) Copyright © 2014-2021 Pierre Nicolas Durette & Contributors

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

t2s-2021.1-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

Details for the file t2s-2021.1-py3-none-any.whl.

File metadata

  • Download URL: t2s-2021.1-py3-none-any.whl
  • Upload date:
  • Size: 24.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2

File hashes

Hashes for t2s-2021.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3fd7e6037ec8d665d7f9305f40e71ff03648c5546750478b3bc6b145e7f86a9b
MD5 e66ea704a36c14b99a403823751f6549
BLAKE2b-256 07e9c40706d502f1ecfdd3d0814b6762b98665e05aecd1c2360b968f031ecbb4

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