sanskrit_tts
A simple python library for converting Sanskrit text to speech.
Pre-requisites
Currently, the only supported method is to use Google Cloud text to speech with a workaround (see details below). A Google Cloud account with text-to-speech API enabled is required. Instructions for enabling the API and setting up application credentials are described here. Please follow these steps before using this library.
Note that the TTS API will incur a cost if the free quota is exceeded (details). The library uses a wavenet voice by default, but this can be changed via the voice parameter to synthesize_text.
Installation
This package has been developed on python 3.8 but should work with any version of python >= 3.6.
pip install sanskrit_tts
To install from the master branch of the git repo:
pip install git+https://github.com/avinashvarna/sanskrit_tts.git
For an editable installation (to modify the code and experiment)
git clone https://github.com/avinashvarna/sanskrit_tts.git
cd sanskrit_tts
pip install -e .
Usage
See the example notebook for a simple example of converting text from Sanskrit Wikipedia to the corresponding audio.
How it works
Google Text-to-Speech does not support Sanskrit yet. As a workaround, this library uses other languages for speech to text conversion. Kannada is used by default for this workaround. Any other language/voice supported by Google TTS API can be used by changing the voice parameter to synthesize_text, and the results will vary. A complete list of voices is available here.
Metadata
Release files for sanskrit-tts 0.0.5
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 |
|---|---|---|---|---|
| sanskrit_tts-0.0.5.tar.gz | 3.7 MB | Without provenance | Details for sanskrit_tts-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sanskrit_tts-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for sanskrit_tts-0.0.5-py3-none-any.whl |
Total release size: 3.7 MB
Release files / sanskrit_tts-0.0.5.tar.gz
| Download URL | sanskrit_tts-0.0.5.tar.gz |
|---|---|
| Size | 3.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a5e7ca99d26145608f9609e503305cda5443c1dc9b1d4ed0aac6a6ee37cb925
|
|
BLAKE2b-256 checksum How to use checksums |
c1dd8d8b011fd2a2c3c4e15e408db16983705f57b247a76cd95a3ce0923bc6d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.15
|
Release files / sanskrit_tts-0.0.5-py3-none-any.whl
| Download URL | sanskrit_tts-0.0.5-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8e0353e10a288550dabbae42c39e90a7e92ad045b564967290185acf3c67b0e5
|
|
BLAKE2b-256 checksum How to use checksums |
ac0a02c95d02e897c373eb484be1f707bf71d4b1a4a6d617c13210daac1fe853
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.15
|
Security for sanskrit-tts 0.0.5
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.