Fish Audio TTS integration for Vision Agents
Project description
Fish Audio Text-to-Speech Plugin
A high-quality Text-to-Speech (TTS) plugin for Vision Agents that uses the Fish Audio API.
Installation
pip install vision-agents-plugins-fish
Usage
from vision_agents.plugins.fish import TTS
from getstream.video.rtc.audio_track import AudioStreamTrack
# Initialize with API key from environment variable
tts = TTS()
# Or specify API key directly
tts = TTS(api_key="your_fish_audio_api_key")
# Create an audio track to output speech
track = AudioStreamTrack(framerate=16000)
tts.set_output_track(track)
# Register event handlers
@tts.on("audio")
def on_audio(audio_data, user):
print(f"Received audio chunk: {len(audio_data)} bytes")
# Send text to be converted to speech
await tts.send("Hello, this is a test of the Fish Audio text-to-speech plugin.")
Configuration Options
api_key: Fish Audio API key (default: reads from FISH_AUDIO_API_KEY environment variable)reference_id: Optional reference voice ID to use for synthesisbase_url: Optional custom API endpoint (default: uses Fish Audio's default endpoint)
Reference Audio
Fish Audio supports using reference audio for voice cloning:
from vision_agents.plugins.fish import TTS
# Using a reference voice ID
tts = TTS(reference_id="your_reference_voice_id")
# Or pass reference audio dynamically when sending text
# (See Fish Audio SDK documentation for advanced usage)
Requirements
- Python 3.10+
- fish-audio-sdk>=2025.4.2
Project details
Release history Release notifications | RSS feed
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_fish-0.1.9.tar.gz.
File metadata
- Download URL: vision_agents_plugins_fish-0.1.9.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08063640f86bbd09c72b1c3c2a24c93e6391accef09cd4be765469093912b401
|
|
| MD5 |
c90b6646fb9e1130d3dffb6bbd0f746c
|
|
| BLAKE2b-256 |
d72ff52f4e7e174efa944e7fe8e10ef0cfdef953638d18b8c50252170eed32fa
|
File details
Details for the file vision_agents_plugins_fish-0.1.9-py3-none-any.whl.
File metadata
- Download URL: vision_agents_plugins_fish-0.1.9-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a60f619fabffe39475328edad265a79ffe4369cbd5e0c5ccf44ab34bb173dea
|
|
| MD5 |
7cd836c970e5294300c58a71d3e48aab
|
|
| BLAKE2b-256 |
cfef7f9fb3e561fe1598a308a43933be719fcb20290e7d39981143f9e7002975
|