Resemble AI TTS
The Resemble AI TTS provider enables your agent to use Resemble AI's high-quality text-to-speech models for generating natural-sounding voice output.
Installation​
Install the Resemble AI-enabled VideoSDK Agents package:
pip install "videosdk-plugins-resemble"
Importing​
from videosdk.plugins.resemble import ResembleTTS
Authentication​
The Resemble plugin requires an Resemble API key.
Set RESEMBLE_API_KEY
in your .env
file.
Example Usage​
from videosdk.plugins.resemble import ResembleTTS
from videosdk.agents import CascadingPipeline
# Initialize the Resemble AI TTS model
tts = ResembleTTS(
# When RESEMBLE_API_KEY is set in .env - DON'T pass api_key parameter
api_key="your-resemble-api-key",
voice_uuid="55592656"
)
# Add tts to cascading pipeline
pipeline = CascadingPipeline(tts=tts)
When using .env file for credentials, don't pass them as arguments to model instances or context objects. The SDK automatically reads environment variables, so omit api_key
and other credential parameters from your code.
Configuration Options​
api_key
: (str) Your Resemble AI API key. Can also be set via theRESEMBLE_API_KEY
environment variable.voice_uuid
: (str) The UUID of the voice to use for synthesis (default:"55592656"
).
Additional Resources​
The following resources provide more information about using Resemble with VideoSDK Agents SDK.
-
Python package: The
videosdk-plugins-resemble
package on PyPI. -
GitHub repo: View the source or contribute to the VideoSDK Resemble AI TTS plugin.
-
Resemble AI docs: Resemble AI docs.
Got a Question? Ask us on discord