poemai-utils
This package is a collection of utilities for AI projects.
Text-to-speech
The audio API resolves a recommended OpenAI model and MP3 output format by default, while still accepting enum values or raw model keys:
from poemai_utils.audio import (
DEFAULT_OPENAI_SPEECH_MODEL,
OpenAITextToSpeech,
SpeechOutputFormat,
TextToSpeechRequest,
)
request = TextToSpeechRequest(
"Welcome to the workshop.",
model=DEFAULT_OPENAI_SPEECH_MODEL,
output_format=SpeechOutputFormat.WAV,
)
request = TextToSpeechRequest("A preview.", model="future-openai-tts-model")
result = OpenAITextToSpeech(api_key="...").synthesize(request)
print(result.audio_bytes, result.content_type, result.file_extension)
print(result.provider_request_id)
Pass an API key explicitly when constructing the adapter; otherwise the OpenAI
SDK uses its normal environment configuration. Synthesis errors expose a
stable code and retryable flag.
Metadata
Release files for poemai-utils 3.4.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 |
|---|---|---|---|---|
| poemai_utils-3.4.0.tar.gz | 177.7 kB | With provenance | Details for poemai_utils-3.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| poemai_utils-3.4.0-py3-none-any.whl | Python 3 | none | any | Details for poemai_utils-3.4.0-py3-none-any.whl |
Total release size: 286.6 kB
Release files / poemai_utils-3.4.0.tar.gz
| Download URL | poemai_utils-3.4.0.tar.gz |
|---|---|
| Size | 177.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa82c0dd9f485fdc1f9340b8304e99ca1151478a552132e80044874997b5b494
|
|
BLAKE2b-256 checksum How to use checksums |
e7fde2ff08bd342dc2d8254a511198b6ef5cf2851c983c3a252fc389ae395c0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / poemai_utils-3.4.0-py3-none-any.whl
| Download URL | poemai_utils-3.4.0-py3-none-any.whl |
|---|---|
| Size | 108.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f4e6fadcd7564192d0c6f8a24b85fb769f015813f945d54b5299e51f728f4375
|
|
BLAKE2b-256 checksum How to use checksums |
1752639660a1c7cb23b315f55b18e228156f9c934ef94ca72f0b3d4f0fde7e0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logSecurity for poemai-utils 3.4.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for poemai_utils-3.4.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logA 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.