Speechify
Speechify is a service that provides high quality, low latency Text-to-Speech (TTS). It's a great fit for real-time voice applications such as voice AI agents and conversational interfaces.
The Speechify plugin for the Stream Python AI SDK allows you to add TTS functionality to your project.
Installation
Install the Stream Speechify plugin with
uv add "vision-agents[speechify]"
# or directly
uv add vision-agents-plugins-speechify
Examples
Read on for some key details and check out our Speechify example to see working code:
- in main.py we see a voice bot that uses Speechify TTS in a Stream call
Initialisation
The Speechify plugin for Stream exposes a TTS class:
from vision_agents.plugins import speechify
tts = speechify.TTS()
To initialise without passing in the API key, make sure the `SPEECHIFY_API_KEY` is available as an environment variable.
You can do this either by defining it in a `.env` file or exporting it directly in your terminal.
Parameters
These are the parameters available in the Speechify TTS plugin for you to customise:
| Name | Type | Default | Description |
|---|---|---|---|
api_key |
str or None |
None |
Your Speechify API key. If not provided, the plugin will look for the SPEECHIFY_API_KEY environment variable. |
voice_id |
str |
"geffen_32" |
ID of the voice to use for TTS responses. See the voices endpoint for options. |
model |
str |
"simba-3.2" |
ID of the Speechify model to use. |
language |
str or None |
None |
Optional ISO 639-1 + ISO 3166-1 language tag (e.g. en-US). When omitted the language is auto-detected. |
Functionality
Send text to convert to speech
The send_iter() method sends the text passed in for the service to synthesize
and yields TTSOutputChunks containing the produced PCM audio.
async for chunk in tts.send_iter("Demo text you want AI voice to say"):
pass
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vision_agents_plugins_speechify-0.6.9.tar.gz.
File metadata
- Download URL: vision_agents_plugins_speechify-0.6.9.tar.gz
- Upload date:
- Size: 3.8 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de2c75015388f5685e108936a3a43fcae08606dc1afa38e9541378b0e48cfbe9
|
|
| MD5 |
b4b688c543fde2be1cdb3f429dc8d2e3
|
|
| BLAKE2b-256 |
c1dc72a2b3c5c8cec2ef09d5a3afbb1323acfd6d47a8bcee80b2eba7c31fa1f5
|
File details
Details for the file vision_agents_plugins_speechify-0.6.9-py3-none-any.whl.
File metadata
- Download URL: vision_agents_plugins_speechify-0.6.9-py3-none-any.whl
- Upload date:
- Size: 3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6298107221f7529fa9cf4b493be73c1b14b52c1e7cd5878def803f25b05b0ac5
|
|
| MD5 |
95f76163c3b560c162dd7dd8473c06ac
|
|
| BLAKE2b-256 |
2727d661e7da1ded46d6609f9d8859e54b90d1d7b1af65c30a826f018ab8e13f
|