Python wrapper for the NanoTTS speech synthesizer
Project description
NanoTTS python wrapper
This package is a python wrapper for the NanoTTS speech synthesizer utility as described here: https://github.com/gmn/nanotts.
Installation
You can install this package with pip install nanotts.
Make sure you have the NanoTTS synthesizer installed and added to your $PATH.
Usage
The NanoTTS python wrapper provides two methods to generate speech, one from a string input, the other from a text file.
import nanotts
ntts = nanotts.NanoTTS()
# Generate speech from a string
ntts.speaks("Hello World!")
# Generate speech from a text file
ntts.speak("input.txt")
The attributes that can be set are described below:
loglevel: set loglevel for the logging module (i.e.logging.*)outputFile: set name of the output .wav file (at least one ofoutputFileandplayhas to be set)pitch: set pitch in range [0.5, 2.0]play: toggle whether to directly play the created speech (at least one ofoutputFileandplayjas to be set)speed: set speed in range [0.2, 5.0]voice: choose language from "de-DE", "en-GB", "en-US", "es-ES", "fr-FR", "it-IT"volume: set volume in range [0.0, 5.0]
Project details
Release history Release notifications | RSS feed
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 nanotts-0.0.1.tar.gz.
File metadata
- Download URL: nanotts-0.0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.6.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80fd6a807a7c0fc991b0724e781bba8fcaef8547490405c543911b8330dfcf04
|
|
| MD5 |
9b77bbf07a7993ee88a0e3a9c3300f5e
|
|
| BLAKE2b-256 |
6b58baa8bc0be4caf6bf41d1e920a12ff93a964839ddfa736bbf496ebd1d2e35
|
File details
Details for the file nanotts-0.0.1-py3-none-any.whl.
File metadata
- Download URL: nanotts-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.6.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0591da90477d4974e9195342ead35b23cbef24e62c8c55686d4c7dd6265dda53
|
|
| MD5 |
fea6a53567e5930bca52e64bd0ff433f
|
|
| BLAKE2b-256 |
596a65e1d9b1668ca0494fffc3457ce0258956cd61378a0fb4a0fdcbab326344
|