Skip to main content

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:

https://sekika.github.io/multiai-tts/

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

multiai_tts-0.3.1.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

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

multiai_tts-0.3.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

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

Hashes for multiai_tts-0.3.1.tar.gz
Algorithm Hash digest
SHA256 393397834eed15fc9162ed3610ecd651a1d9a19767209bf36ec49fb011a5cc79
MD5 06f46fe0865d3a031b74d0b3573a7ed8
BLAKE2b-256 a369553d484d816268b7ff2bf7862290d0fcc7b2c006db93f32a4149adb30876

See more details on using hashes here.

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

Hashes for multiai_tts-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5e38c46b16e870528498c2c7302ec04383d5930562b8c5b7438e7877f2108091
MD5 a159bec70a9d85e1dc5156fb8a2a87d3
BLAKE2b-256 af291943705ced73cf9c282481e357b80e90c2eedc5006ed069dd4fbbce77c88

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