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.0.tar.gz (13.9 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.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file multiai_tts-0.3.0.tar.gz.

File metadata

  • Download URL: multiai_tts-0.3.0.tar.gz
  • Upload date:
  • Size: 13.9 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.0.tar.gz
Algorithm Hash digest
SHA256 ae137f005ff90d8ae7cb62d2baa5b647b5c6132b7b642e42fc5d6720a8a9b722
MD5 638360cd159477e36b281cef0bfc047b
BLAKE2b-256 c86fbc426855eaa66ca74e4c9593f861c25020bb0466911f6697601074e56020

See more details on using hashes here.

File details

Details for the file multiai_tts-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: multiai_tts-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 201ab67547896088ec953f850e3fcb8a99b3f632a5f14e90fb3316d38de8ec7b
MD5 0ced128fc8ccc0f64ab5b213a27895d3
BLAKE2b-256 b72fd36742bf328798fe967408d79b3d427c4f5f1cbddbc51d25c51985a36461

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