Skip to main content

realtimetts-gmicloud

GMI Cloud text-to-speech engine for RealtimeTTS.

One engine covers the speech model families behind GMI Cloud's multimodal inference request queue:

  • Inworld Realtime TTS (inworld-tts-*) — the low-latency option, well suited to real-time conversation.
  • MiniMax speech synthesis (minimax-tts-speech-*).
  • Resemble AI's Chatterbox (Chatterbox-tts) — requires a Resemble voice_uuid, passed as voice.

The engine picks the request shape from the model id and resolves both documented response shapes: synchronous inline outcome responses, and queued/dispatched generations resolved by polling.

Installation

pip install realtimetts-gmicloud

RealtimeTTS playback needs PyAudio, which is an optional extra of RealtimeTTS:

pip install "realtimetts[playback]"

Prerequisites

A GMI Cloud API key, passed as api_key or set as GMI_CLOUD_API_KEY.

Usage

from RealtimeTTS import TextToAudioStream
from realtimetts_gmicloud import GmicloudEngine

engine = GmicloudEngine(
    api_key="your-gmi-cloud-api-key",   # or GMI_CLOUD_API_KEY env var
    model="inworld-tts-2",              # GMI Cloud model id
    voice="Dennis",                     # family voice id (Resemble UUID for Chatterbox)
)
stream = TextToAudioStream(engine)
stream.feed("Hello from GMI Cloud.").play()

Chatterbox models need a Resemble voice UUID:

engine = GmicloudEngine(model="Chatterbox-tts", voice="your-resemble-voice-uuid")

Configuration

Parameter Default Notes
api_key GMI_CLOUD_API_KEY or GMI_API_KEY env Required
model inworld-tts-2 Family selected from the id; unknown ids use the Inworld request shape
voice per family (Dennis, English_expressive_narrator) Chatterbox requires a Resemble voice_uuid
speed 1.0 Speaking rate
temperature None Inworld family only
extra_payload {} Merged into the request payload last (overrides built-in fields)
poll_interval_secs 2.0 Delay between polls of a queued generation
poll_attempts 90 Polls before giving up (MiniMax generations can be slow through GMI's queue)
sample_rate 48000 Emitted PCM rate; responses are resampled to it
timeout 60.0 Per-request HTTP timeout in seconds
debug False Print synthesis timing and errors

Output contract

Every response is normalized before playback: GMI Cloud returns each model's native WAV format (48 kHz mono for Inworld, 32 kHz stereo for MiniMax), and the engine down-mixes to mono and resamples to the declared sample_rate, so the emitted PCM always matches get_stream_info() exactly (mono 16-bit at 48 kHz by default).

Measured results (2026-11-17, live GMI Cloud API)

Model Family Emitted samples Synthesis time Notes
inworld-tts-2 Inworld 204,000 (4.25 s) 2.9 s low latency, reliable
minimax-tts-speech-2.8-turbo MiniMax 163,840 (3.4 s) 18.6 s queued path; normalized from native 32 kHz stereo

Also verified live: end-to-end synthesis through a real TextToAudioStream (347 KB WAV captured), Chatterbox rejection without a voice_uuid, and a bad API key mapping to a failed synthesis.

Behavior notes, verified live:

  • MiniMax generations go through GMI Cloud's queue. Most complete in seconds; an occasional request stays processing past the default poll budget (poll_attempts / poll_interval_secs are configurable). The Inworld family is the low-latency option.
  • Chatterbox models reject requests without a Resemble voice_uuid with a clear ValueError before any network call.
  • Permanent HTTP errors (e.g. 401/404) fail immediately; only 408/429/5xx are retried while polling.

License

Apache-2.0

Metadata

Release files for realtimetts-gmicloud 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for realtimetts-gmicloud 0.1.0
File Size Uploaded Provenance Actions
realtimetts_gmicloud-0.1.0.tar.gz 16.8 kB With provenance Details for realtimetts_gmicloud-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for realtimetts-gmicloud 0.1.0
File Interpreter ABI Platform Actions
realtimetts_gmicloud-0.1.0-py3-none-any.whl Python 3 none any Details for realtimetts_gmicloud-0.1.0-py3-none-any.whl

Total release size: 34.3 kB

Release files / realtimetts_gmicloud-0.1.0.tar.gz

Download URL realtimetts_gmicloud-0.1.0.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c34771cf4d16fdc318e8efc140fc1a75a8a534c4da3f0a88ddc29a610953a8f9
BLAKE2b-256 checksum
How to use checksums
e1d2d1cff46a5ac8a71a357bf27ba94fd7efb5168029f69da7100f39b59385a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / realtimetts_gmicloud-0.1.0-py3-none-any.whl

Download URL realtimetts_gmicloud-0.1.0-py3-none-any.whl
Size 17.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e915aa8751f5fb7c53f4db5e11a1a91cea5b74e38f93c4e267c9946ffdddc5a2
BLAKE2b-256 checksum
How to use checksums
8a521e05ee35b33b618fbceec93822ae9498f0109f30f9e514e55c0bc65b4a09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Security for realtimetts-gmicloud 0.1.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for realtimetts_gmicloud-0.1.0.tar.gz

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 Nov 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page