Sonus-AV
Description
Sonus-AV is a Python library designed to enhance Large Language Models (LLMs) by adding support for voice and image inputs. This library simplifies the process of converting speech to text and analyzing images before feeding the information to LLMs.
Features
- Audio Processing: Convert audio input to text using
AudioProcessor, which supports multiple languages and can handle real-time translation. - Image Processing: Use
ImageProcessorto extract text from images or generate descriptions of images using advanced machine learning models.
Installation
Install the library using pip:
pip install sonus-av
Usage
Audio Processing
Here is how you can use the AudioProcessor to convert speech to text:
from sonus_av import AudioProcessor
# Initialize the processor with your OpenAI API key
audio_processor = AudioProcessor(openai_api_key='your-openai-api-key')
# Capture and translate audio to text
translated_text = audio_processor.capture_and_translate('path_to_your_audio_file.wav')
print(translated_text)
Image Processing
Here is how you can use the ImageProcessor to get a description of an image:
from sonus_av import ImageProcessor
# Initialize the processor with your OpenAI API key
image_processor = ImageProcessor(openai_api_key='your-openai-api-key')
# Get an image description
image_description = image_processor.describe_image('url_to_your_image')
print(image_description)
Contributions
Contributions are welcome! Please fork the repository and open a pull request with your improvements.
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
Metadata
Release files for sonus-av 0.1.0
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 |
|---|---|---|---|---|
| sonus_av-0.1.0.tar.gz | 4.5 kB | Without provenance | Details for sonus_av-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sonus_av-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for sonus_av-0.1.0-py3-none-any.whl |
Total release size: 9.6 kB
Release files / sonus_av-0.1.0.tar.gz
| Download URL | sonus_av-0.1.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eccc644502694f5368ff91c2697a9f8d3d96ceb97c5f1a9960cf1e5ce45e84cf
|
|
BLAKE2b-256 checksum How to use checksums |
6cf0c710ecc7d2042b360ce466aca250d2df0dc3fa350b856a88ef3b75789fe8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.9.13 Windows/10
|
Release files / sonus_av-0.1.0-py3-none-any.whl
| Download URL | sonus_av-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c6e19baec864bb9b01f217d35915b5cb55fdba3d9738ab60f1908a5dd4b0c1c3
|
|
BLAKE2b-256 checksum How to use checksums |
c291ae9187117d9d8cd8e617746b5a07c5592f02b5d9e24920b325012843b725
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.9.13 Windows/10
|
Security for sonus-av 0.1.0
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.