TTS extension for multiai using OpenAI, Google GenAI and Azure Speech
Project description
multiai-tts
multiai-tts is an extension library for multiai that provides Text-to-Speech (TTS) capabilities using OpenAI, Google GenAI, and Azure Speech.
- One simple interface (
speak()/save_tts()) across OpenAI, Google GenAI, and Azure Speech. - Save to WAV, MP3, and other formats (via
ffmpeg). - Automatic chunking and joining of long text that exceeds API length limits.
Installation
pip install multiai-tts
Quick example
import multiai_tts
client = multiai_tts.Prompt()
client.set_tts_model('openai', 'gpt-4o-mini-tts')
client.speak("Hello, this is a test from OpenAI model.")
if client.error:
print(client.error_message)
Documentation
Full documentation — prerequisites, API key configuration, per-provider examples, and the long-text chunking feature — is available at:
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file multiai_tts-0.3.1.tar.gz.
File metadata
- Download URL: multiai_tts-0.3.1.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
393397834eed15fc9162ed3610ecd651a1d9a19767209bf36ec49fb011a5cc79
|
|
| MD5 |
06f46fe0865d3a031b74d0b3573a7ed8
|
|
| BLAKE2b-256 |
a369553d484d816268b7ff2bf7862290d0fcc7b2c006db93f32a4149adb30876
|
File details
Details for the file multiai_tts-0.3.1-py3-none-any.whl.
File metadata
- Download URL: multiai_tts-0.3.1-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e38c46b16e870528498c2c7302ec04383d5930562b8c5b7438e7877f2108091
|
|
| MD5 |
a159bec70a9d85e1dc5156fb8a2a87d3
|
|
| BLAKE2b-256 |
af291943705ced73cf9c282481e357b80e90c2eedc5006ed069dd4fbbce77c88
|