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.
- Requires installing with extra
How to Install
It is available on PyPI under name simple-talk.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simple_talk-0.1.4.tar.gz.
File metadata
- Download URL: simple_talk-0.1.4.tar.gz
- Upload date:
- Size: 34.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edd91f55f1a4588bf336c90cc0ca013f94d01150bf622740a2f55e66916abc31
|
|
| MD5 |
7a894e61fdda621a013633999bdd1a1a
|
|
| BLAKE2b-256 |
c65acb32b7c2b1b4b2e7cab75b7b800cc00914b4ac32e4d0d35864abd1ecac04
|
File details
Details for the file simple_talk-0.1.4-py3-none-any.whl.
File metadata
- Download URL: simple_talk-0.1.4-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d49b961bf7fc58dff2b65cdb23291dd6e810bc9aed30f1589bcdf4353e4e79f8
|
|
| MD5 |
3c15f3c466d3acf3c1a4a65c16dd1e75
|
|
| BLAKE2b-256 |
5af1377c155d3265122c04ae91bd6c91ebaa858ff86e736fbab3319449f2ca29
|