vocalverse
This project provides functionalities for Text Translation, Speech Synthesis, and Audio Transcription service.
Features
Version - 1.0.0
- Translate text between different languages.
- Convert text to speech and play it.
- Convert text to speech and export it as an audio file.
Version - 1.1.1
- Transcribes audio file to text.
- Trims audio file efficiently.
Installation
pip install :
pip install vocalverse
if you are getting pip not found error try with pip3 (Latest Python Version 3+)
pip3 install vocalverse
git clone :
-
Clone the repository:
git clone https://github.com/Vamshi0104/vocalverse.git -
Install the required packages:
pip install -r requirements.txt
Usage
Explore all the vocalverse capabilities :
Example for vocalverse CLI usage:
python3 vocalverse.py --help
python3 vocalverse.py --translate "Hello" "en" "tamil"
python3 vocalverse.py --tts "How are you??" "en"
python3 vocalverse.py --tts-file "How are you??" "en" "my_speech" "mp3"
python3 vocalverse.py --audio-to-text your_file_name.mp3
python3 vocalverse.py --trim-audio source_file_name.mp3 dest_file_name.mp3 20 30 [trims audio file from 20 to 30 seconds)
python3 vocalverse.py --trim-audio source_file_name . 20 30 [in this case dest_file_name would be trimmed_source_file_name as output]
python3 vocalverse.py --lang-dict
Note :
>> --translate for translating text to desired destination language from source language specified
>> --tts stands for text to speech
>> --tts-file for text to speech and export to a file
>> --audio-to-text for transcribing audio to text
>> --trim-audio for trimming audio from given start to end time efficiently
These are List of Languages supported for the toolkit :
| Language Name | Language Code |
|---|---|
| afrikaans | af |
| albanian | sq |
| amharic | am |
| arabic | ar |
| armenian | hy |
| azerbaijani | az |
| basque | eu |
| belarusian | be |
| bengali | bn |
| bosnian | bs |
| bulgarian | bg |
| catalan | ca |
| cebuano | ceb |
| chichewa | ny |
| chinese (simplified) | zh-cn |
| chinese (traditional) | zh-tw |
| corsican | co |
| croatian | hr |
| czech | cs |
| danish | da |
| dutch | nl |
| english | en |
| esperanto | eo |
| estonian | et |
| filipino | tl |
| finnish | fi |
| french | fr |
| frisian | fy |
| galician | gl |
| georgian | ka |
| german | de |
| greek | el |
| gujarati | gu |
| haitian creole | ht |
| hausa | ha |
| hawaiian | haw |
| hebrew | he |
| hindi | hi |
| hmong | hmn |
| hungarian | hu |
| icelandic | is |
| igbo | ig |
| indonesian | id |
| irish | ga |
| italian | it |
| japanese | ja |
| javanese | jw |
| kannada | kn |
| kazakh | kk |
| khmer | km |
| korean | ko |
| kurdish (kurmanji) | ku |
| kyrgyz | ky |
| lao | lo |
| latin | la |
| latvian | lv |
| lithuanian | lt |
| luxembourgish | lb |
| macedonian | mk |
| malagasy | mg |
| malay | ms |
| malayalam | ml |
| maltese | mt |
| maori | mi |
| marathi | mr |
| mongolian | mn |
| myanmar (burmese) | my |
| nepali | ne |
| norwegian | no |
| odia | or |
| pashto | ps |
| persian | fa |
| polish | pl |
| portuguese | pt |
| punjabi | pa |
| romanian | ro |
| russian | ru |
| samoan | sm |
| scots gaelic | gd |
| serbian | sr |
| sesotho | st |
| shona | sn |
| sindhi | sd |
| sinhala | si |
| slovak | sk |
| slovenian | sl |
| somali | so |
| spanish | es |
| sundanese | su |
| swahili | sw |
| swedish | sv |
| tajik | tg |
| tamil | ta |
| telugu | te |
| thai | th |
| turkish | tr |
| ukrainian | uk |
| urdu | ur |
| uzbek | uz |
| vietnamese | vi |
| welsh | cy |
| xhosa | xh |
| yiddish | yi |
| yoruba | yo |
| zulu | zu |
Example for vocalverse Python function usage:
import vocalverse
-
Calling this function - translates text to desired destination language from source language specified
translate_text(text, src_lang, dest_lang)
text_to_speech(text, lang)
-
Calling this function - converts text to speech given a destination language and exports audio to a filename and audio extension specified
text_to_speech_file_export(text, lang, filename, audio_file_extension)
audio_to_text(audio_filename)
-
Calling this function - trims audio file from specified start to end time(in seconds) [Note : dest_audio_filename can be '.' - to name it as trimmed_src_audio_filename]
trim_audio(src_audio_filename, dest_audio_filename, start_time, end_time)
>>> Stay tuned for more updates from vocalverse!!!
Metadata
Release files for vocalverse 1.1.1
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 | |
|---|---|---|---|---|
| vocalverse-1.1.1.tar.gz | 7.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vocalverse-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.4 kB
Release files / vocalverse-1.1.1.tar.gz
| Download URL | vocalverse-1.1.1.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c2ece01236b6024be56aae5e0c89379445b9e7a7a813009a95b8746cf52dbe6
|
|
BLAKE2b-256 checksum How to use checksums |
51bb62a13f863009b1886bd71e03af9f2bc818287477dc797b6db144cd6405de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.10
|
Release files / vocalverse-1.1.1-py3-none-any.whl
| Download URL | vocalverse-1.1.1-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
70b19b5761357222a930a97b17bd5acd12e076baa328bf0ac33defadde899f16
|
|
BLAKE2b-256 checksum How to use checksums |
6d148e30caa7f8aa1104b3f7e9c738b144f28f64c2ab85aac6cfaf38f0f0f886
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.10
|
Security for vocalverse 1.1.1
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.