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
Metadata
Release files for vision-agents-plugins-speechify 0.6.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vision_agents_plugins_speechify-0.6.9.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vision_agents_plugins_speechify-0.6.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.7 kB
Release files / vision_agents_plugins_speechify-0.6.9.tar.gz
| Download URL | vision_agents_plugins_speechify-0.6.9.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de2c75015388f5685e108936a3a43fcae08606dc1afa38e9541378b0e48cfbe9
|
|
BLAKE2b-256 checksum How to use checksums |
c1dc72a2b3c5c8cec2ef09d5a3afbb1323acfd6d47a8bcee80b2eba7c31fa1f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / vision_agents_plugins_speechify-0.6.9-py3-none-any.whl
| Download URL | vision_agents_plugins_speechify-0.6.9-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6298107221f7529fa9cf4b493be73c1b14b52c1e7cd5878def803f25b05b0ac5
|
|
BLAKE2b-256 checksum How to use checksums |
2727d661e7da1ded46d6609f9d8859e54b90d1d7b1af65c30a826f018ab8e13f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|