Skip to main content

A collection of multimedia utilities for AI-powered applications

Project description

Pixtools

A collection of multimedia utilities for AI-powered applications.

Features

  • Text-to-Speech: Convert text to audio using OpenAI's TTS API
  • Voice Recording: Record and transcribe audio using OpenAI's Whisper API
  • Audio Playback: Play audio files with simple controls
  • OpenAI Client: Streamlined interface for OpenAI API interactions
  • File Caching: Efficient caching system for API responses and generated content
  • Image Generation: Generate images using OpenAI's DALL-E API

Installation

pip install pixtools

Requirements

  • Python 3.10 or higher
  • OpenAI API key

Quick Start

from pixtools import TextToSpeech, VoiceToText, ImageGen, OpenAIClient

# Initialize OpenAI client
client = OpenAIClient(api_key="your-api-key")

# Text-to-speech
tts = TextToSpeech(client)
tts.speak("Hello, world!")

# Voice recording and transcription
voice = VoiceToText(client)
text = voice.record_and_transcribe()

# Image generation
image_gen = ImageGen(client)
image_gen.generate("A beautiful sunset", "sunset.png")

License

MIT License

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

pixtools-0.1.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

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

pixtools-0.1.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pixtools-0.1.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for pixtools-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b647bca4d5f1b643980045007afd9dc4b30490588f1779c46c62f4125db95eaf
MD5 76af4a1cf2e831993073491252fd10bb
BLAKE2b-256 dd511618c96efc170e5389a6d8c5cd5977beb06eac2fe646ba0d3ca89c1748b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pixtools-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for pixtools-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cff2e93fc3e9282cb07dc27b27ac19b959c8aacb90b0d6c6ab1ce8713419e3dd
MD5 81882ebba7f00c5f319f81003da4b1d3
BLAKE2b-256 53364a67efacf9c0159c428f9fb5376b4fdb8b5bcc5c9d4444b07d7f9f52da59

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