Zalo Text-To-Speech
I. Introduction
Zalo Text-To-Speech (ZTTS) engine delivers fast and premium quality audios from input Vietnamese text. ZTTS is optimized for realtime and high volume traffic applications such as news websites, voice streaming services, chatbots, and virtual assistants. ZTTS currently supports four Vietnamese voices including two Northern accents and two Southern accents.
II. Install ZaloTTS
ZaloTTS supports python >= 3.7, <3.9
Installing from PyPI is the easiest option.
$ pip install ZaloTTS
III. API_KEY
Get api key here.
You can use the api key as an argument to initialize the ZaloTTS object.
Or you can assign the environment variable ZALO_API_KEY in the .env file. The api key will be used when you initialize the ZaloTTS object.
# .env
ZALO_API_KEY = {your_api_key}
III. Speakers
| ID | Name | Constant |
|---|---|---|
| 1 | South women | ZaloTTS.SOUTH_WOMEN |
| 2 | Northern women | ZaloTTS.NORTHERN_WOMEN |
| 3 | South men | ZaloTTS.SOUTH_MEN |
| 4 | Northern men | ZaloTTS.NORTHERN_MEN |
IV. Examples
from zalo_tts import ZaloTTS
tts = ZaloTTS(speaker=ZaloTTS.NORTHERN_MEN, api_key={your_api_key})
tts.text_to_speech("Câu lạc bộ học thuật ICON xin chào các bạn nhé.")
Metadata
Release files for ZaloTTS 0.0.3
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 |
|---|---|---|---|---|
| ZaloTTS-0.0.3.tar.gz | 3.4 kB | Without provenance | Details for ZaloTTS-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ZaloTTS-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for ZaloTTS-0.0.3-py3-none-any.whl |
Total release size: 6.8 kB
Release files / ZaloTTS-0.0.3.tar.gz
| Download URL | ZaloTTS-0.0.3.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bfb6cdf188d0ae4a8e922faa5510e042b8eeaa4ef1af261098be4dcc870b4ca6
|
|
BLAKE2b-256 checksum How to use checksums |
2ac91f5d39d3d090cb8746ba12019e6d33f8f694cef6c9bac41de7e4c6a35226
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8
|
Release files / ZaloTTS-0.0.3-py3-none-any.whl
| Download URL | ZaloTTS-0.0.3-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ae101d5fdb5252e306ebeb401a1691b8aa8ca05fa5c5e2f96ecb049a9e0fa17
|
|
BLAKE2b-256 checksum How to use checksums |
9f5187b66705b1c842b5975e868156af63414966a8cc974abb4c6e4bd78ead38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8
|
Security for ZaloTTS 0.0.3
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.