Skip to main content

No project description provided

Project description

Introduction

This library provides simple Pythonic interface to use specified text-to-speech synthesizer.

It supports following synthesizers:

  • macOS's builtin synthesizer
    • Only allows personal, non-commercial use (as stated in macOS software license agreement).
    • Outputs mp4 file.
  • eSpeak NG
    • Requires installing eSpeak NG CLI first.
    • Outputs wav file.
  • Amazon Polly
    • Requires installing with extra simple-talk[polly]
    • Must specify engine and voice
    • Outputs mp3 file.

By default, it automatically normalizes audio volume and outputs mp3 file.

How to Install

It is available on PyPI under name simple-talk.

You also need to install Spacy model by pip install $(spacy info en_core_web_trf --url).

How to Use

It is straight-forward as below:

In [1]: from simple_talk import SimpleTalk

In [2]: s = SimpleTalk()

In [3]: s.talk("Hello world!", "output")

In addition, you can specify voice and/or synthesizer when constructing SimpleTalk object.

You can specify output filename without suffix, and it will return you full output filename with respective suffix. Otherwise, if output filename is not specified, an object of class AudioFileClip from MoviePy is returned, and you can further use it to write to any audio file with any MoviePy supported audio format.

...

In [3]: clip = s.talk("Hello world!")

In [4]: clip.write_audiofile("output.mp3")

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

simple_talk-0.1.10.tar.gz (73.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_talk-0.1.10-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file simple_talk-0.1.10.tar.gz.

File metadata

  • Download URL: simple_talk-0.1.10.tar.gz
  • Upload date:
  • Size: 73.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for simple_talk-0.1.10.tar.gz
Algorithm Hash digest
SHA256 71f2ca32769a494582fc15d67d0ec4cce55060d2f1f98927720e6ab475b637a9
MD5 34d815568ffef7b8d3fdc29aa39aeff2
BLAKE2b-256 902cbecf73f908f926dce573541ab8000ca2dd562a125454d6faaaebf3532b8d

See more details on using hashes here.

File details

Details for the file simple_talk-0.1.10-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_talk-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 05080c0f5fdb8580db02beb059b2952fff6fd1781637bf262eca0f57a39e56e5
MD5 92496076f62465d585af774d62d1e2b3
BLAKE2b-256 88af77138fd5b5e3dc194e69aa6c72dbb3cbdd20e04ef56b0b490c317efeb734

See more details on using hashes here.

Supported by

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