Skip to main content

Inworld AI TTS integration for Vision Agents

Project description

Inworld AI Text-to-Speech Plugin

A high-quality Text-to-Speech (TTS) plugin for Vision Agents that uses the Inworld AI API with streaming support.

Installation

uv add "vision-agents[inworld]"
# or directly
uv add vision-agents-plugins-inworld

Usage

from vision_agents.plugins import inworld

# Initialize with API key from environment variable
tts = inworld.TTS()

# Or specify API key and other options directly
tts = inworld.TTS(
    api_key="your_inworld_api_key",
    voice_id="Dennis",
    model_id="inworld-tts-1.5-max",
    temperature=1.1
)

# Use with an Agent
from vision_agents.core import Agent
from vision_agents.plugins import getstream, gemini, smart_turn

agent = Agent(
    edge=getstream.Edge(),
    tts=inworld.TTS(),
    llm=gemini.LLM(),
    turn_detection=smart_turn.TurnDetection(),
)

Configuration Options

  • api_key: Inworld AI API key (default: reads from INWORLD_API_KEY environment variable)
  • voice_id: The voice ID to use for synthesis (default: "Dennis")
  • model_id: The model ID to use for synthesis. Options: "inworld-tts-1.5-max", "inworld-tts-1.5-min" "inworld-tts-1", "inworld-tts-1-max" (default: "inworld-tts-1.5-max")
  • temperature: Determines the degree of randomness when sampling audio tokens. Accepts values between 0 and 2 (default: 1.1)

Requirements

  • Python 3.10+
  • httpx>=0.27.0 "av>=10.0.0",

Getting Started

  1. Get your Inworld AI API key from the Inworld Portal
  2. Set the INWORLD_API_KEY environment variable:
    export INWORLD_API_KEY="your_api_key_here"
    
  3. Use the plugin in your Vision Agents application

API Reference

The plugin implements the standard Vision Agents TTS interface:

  • stream_audio(text: str): Convert text to speech and return an async iterator of PcmData chunks
  • stop_audio(): Stop audio playback (no-op for this plugin)
  • send(text: str): Send text to be converted to speech (inherited from base class)

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

vision_agents_plugins_inworld-0.5.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

vision_agents_plugins_inworld-0.5.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file vision_agents_plugins_inworld-0.5.0.tar.gz.

File metadata

  • Download URL: vision_agents_plugins_inworld-0.5.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for vision_agents_plugins_inworld-0.5.0.tar.gz
Algorithm Hash digest
SHA256 4c07b18b247b6b22eb7019e88f78e3d52bcd5d75271b2f1a72c773dc7d7d4b36
MD5 beaff0d1e8ca05ba563dd5f0f7b85d51
BLAKE2b-256 7e975fd57165f8ab376c066a27137fd873ab9f9c59584afae34a5be5fd0cc4bd

See more details on using hashes here.

File details

Details for the file vision_agents_plugins_inworld-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: vision_agents_plugins_inworld-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for vision_agents_plugins_inworld-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3cda500e495465d94fdb2b2da5e3831eb48c827b2953b228bfa69777a70fda52
MD5 22ad9c95ad4519ee9e9c2ab87c18896b
BLAKE2b-256 2cdf9a229ea21d7c5a1b65418e3f9d1a8bb9272e949c5403ab09d1bc946f47be

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