A multilingual text and voice processing toolkit
Project description
LinguaLab
LinguaLab is a specialised Python package designed for language processing tasks, including text translation and video transcription. It provides tools for handling multilingual content and audio-to-text conversion, with support for various services and APIs.
Features
- Text Translation:
- Multi-language text translation
- Language detection
- Customisable translation providers
- Proxy and timeout configuration
- Video Transcription:
- Audio-to-text conversion
- Support for IBM Watson services
- File-based transcription output
- Customisable output formats
Installation Guide
Dependency Notice
Before installing, please ensure the following dependencies are available on your system:
-
Required Third-Party Libraries:
- googletrans
- ibm-watson
- ibm-cloud-sdk-core
- filewise
- pygenutils
You can install them via pip:
pip install googletrans ibm-watson ibm-cloud-sdk-core filewise pygenutils
Or via Anaconda (recommended channel:
conda-forge):conda install -c conda-forge googletrans ibm-watson ibm-cloud-sdk-core filewise pygenutils
Installation Instructions
Install the package using pip:
pip install lingualab
Package Updates
To stay up-to-date with the latest version of this package, simply run:
pip install --upgrade lingualab
Project Structure
The package is organised into the following components:
-
text_translations.py: Text translation utilities
- Multi-language translation
- Language detection
- Provider configuration
- Customisable parameters
-
transcribe_video_files.py: Video transcription tools
- Audio-to-text conversion
- IBM Watson integration
- File output handling
For detailed version history and changes, please refer to:
CHANGELOG.md: Comprehensive list of changes for each versionVERSIONING.md: Versioning policy and guidelines
Usage Examples
Text Translation
from lingualab import text_translations
# Translate text from Spanish to English
translated_text = text_translations.translate_string(
phrase_or_words="Hola mundo",
lang_origin="es",
lang_translation="en"
)
# Detect language of a text
detected_lang = text_translations.translate_string(
phrase_or_words="Bonjour le monde",
procedure="detect"
)
Video Transcription
from lingualab import transcribe_video_files
# Transcribe a video file using IBM Watson
transcription = transcribe_video_files.transcribe_video(
video_file="input.mp4",
api_key="your_api_key",
service_url="your_service_url"
)
# Save transcription to file
transcribe_video_files.save_transcription_in_file(
transcript=transcription,
relative_path_noext="output_transcription"
)
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 lingualab-3.4.2.tar.gz.
File metadata
- Download URL: lingualab-3.4.2.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae068e05b55de2f12a787a24248f7f122535f1eb23852f07f4144e5fd58af105
|
|
| MD5 |
e2434eb8de15106097e4e82e0b672709
|
|
| BLAKE2b-256 |
e24c15d9f4ee16545902647799542731caa5269a50c87761e85e7c78849791a2
|
File details
Details for the file lingualab-3.4.2-py3-none-any.whl.
File metadata
- Download URL: lingualab-3.4.2-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
174dab46bccba6efa54f61b49b64221100dfcf0ddfb00d57e0de24c5356112f7
|
|
| MD5 |
331055e7789bf46f25cf722b3d36442f
|
|
| BLAKE2b-256 |
9234943182e90d8dbe5926b65dccea071d98ed434ea394b72005ed9d6bdb2818
|