Skip to main content

A library to add voice and image input support to large language models (LLMs).

Project description

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 ImageProcessor to 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sonus_av-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sonus_av-0.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file sonus_av-0.1.0.tar.gz.

File metadata

  • Download URL: sonus_av-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.9.13 Windows/10

File hashes

Hashes for sonus_av-0.1.0.tar.gz
Algorithm Hash digest
SHA256 eccc644502694f5368ff91c2697a9f8d3d96ceb97c5f1a9960cf1e5ce45e84cf
MD5 632ece5b48d16e2ccbe777a61c53b74d
BLAKE2b-256 6cf0c710ecc7d2042b360ce466aca250d2df0dc3fa350b856a88ef3b75789fe8

See more details on using hashes here.

File details

Details for the file sonus_av-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sonus_av-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.9.13 Windows/10

File hashes

Hashes for sonus_av-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6e19baec864bb9b01f217d35915b5cb55fdba3d9738ab60f1908a5dd4b0c1c3
MD5 5a824f2aa04ec42459ef0f1a2de7000c
BLAKE2b-256 c291ae9187117d9d8cd8e617746b5a07c5592f02b5d9e24920b325012843b725

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page