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.2.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| poemai_utils-3.2.9.tar.gz | 169.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| poemai_utils-3.2.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 275.4 kB
Release files / poemai_utils-3.2.9.tar.gz
| Download URL | poemai_utils-3.2.9.tar.gz |
|---|---|
| Size | 169.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c0d6aae3ed74fae416b49ee0f8ffd2de5a715a147ef506cd87f933847ba3470
|
|
BLAKE2b-256 checksum How to use checksums |
ec74d99a9cdaa4a855c263d19d65bdcf8e1c3d4d8a2f19bdc67319c49ff54129
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 17, 2026.
Transparency logRelease files / poemai_utils-3.2.9-py3-none-any.whl
| Download URL | poemai_utils-3.2.9-py3-none-any.whl |
|---|---|
| Size | 105.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0ab17f36c7a4811d39cde7d5623910f3f4a1f977298471645b4f259eb95f893
|
|
BLAKE2b-256 checksum How to use checksums |
3c8d92bafe53d8c22a814c59ca0eb2bb2a1f91195408039a979f58a3347a3313
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 17, 2026.
Transparency log