Skip to main content

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")

Metadata

Release files for simple-talk 0.1.10

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

Source distribution (sdist)

Source distribution for simple-talk 0.1.10
File Size Uploaded
simple_talk-0.1.10.tar.gz 73.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for simple-talk 0.1.10
File Interpreter ABI Platform
simple_talk-0.1.10-py3-none-any.whl Python 3 none any Details

Total release size: 78.2 kB

Release files / simple_talk-0.1.10.tar.gz

Download URL simple_talk-0.1.10.tar.gz
Size 73.3 kB
Tags Source
SHA-256 checksum
How to use checksums
71f2ca32769a494582fc15d67d0ec4cce55060d2f1f98927720e6ab475b637a9
BLAKE2b-256 checksum
How to use checksums
902cbecf73f908f926dce573541ab8000ca2dd562a125454d6faaaebf3532b8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Release files / simple_talk-0.1.10-py3-none-any.whl

Download URL simple_talk-0.1.10-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
05080c0f5fdb8580db02beb059b2952fff6fd1781637bf262eca0f57a39e56e5
BLAKE2b-256 checksum
How to use checksums
88af77138fd5b5e3dc194e69aa6c72dbb3cbdd20e04ef56b0b490c317efeb734
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Release history Release notifications | RSS feed

This release

0.1.10 This release

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

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