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.1.tar.gz (15.5 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.1-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pixtools-0.1.1.tar.gz
  • Upload date:
  • Size: 15.5 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.1.tar.gz
Algorithm Hash digest
SHA256 4ad6a05a3c63ebedfb9c69b270d1f64a491edbdaac80aef013bcdd31366b8bc2
MD5 d0d36aa339243a0c91aca124a7848747
BLAKE2b-256 f2af481087fbe4acffbe8a396e45b5ce7e1408996b1294ae979e3e9af676dd6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pixtools-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a1bbc18ba6c4a2f05e80e7707d246ac54a9827d260a9f61aa3a19fe85bed3460
MD5 498687ecac28fc892b09ed4c07f2011b
BLAKE2b-256 c48b34b02557c5aa27c771200d91bcf171675ecbf42b820ec149b8811a3907c2

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