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.
- Requires installing with extra
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| simple_talk-0.1.10.tar.gz | 73.3 kB | Without provenance | Details for simple_talk-0.1.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| simple_talk-0.1.10-py3-none-any.whl | Python 3 | none | any | Details for simple_talk-0.1.10-py3-none-any.whl |
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
|
Security for simple-talk 0.1.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.