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.2.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.2-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: multiai_tts-0.3.2.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.2.tar.gz
Algorithm Hash digest
SHA256 83db6a69a05c0e5e56ca271f2d69284606d4bb2f04776dc467c3f78712718ea7
MD5 2d775965780505b6ecca50ca80a2181a
BLAKE2b-256 523e4da962f1eca273375248f545bad2261323b4bfcde4ec92427d627a9f8bb4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multiai_tts-0.3.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ee573a39a6fa9e7a46b7551b1b7cf6bfa8f0f5900daefde6f2cdd06cfc04b944
MD5 995de566ed795630d9a6ebcf4c62400b
BLAKE2b-256 3ccc9d990053c6dfab6f9c8979b7344ad44a712fbe1775537445ef4ba9aa41eb

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