Quick start examples for the Resemble AI API in Python and JavaScript.
python/
raw/ — Direct API calls (no SDK)
sdk/ — Using the Resemble Python SDK
js/
raw/ — Direct API calls (no SDK)
sdk/ — Using the Resemble Node SDK
- Get your API key from app.resemble.ai/hub/api
- Export it in your shell:
export RESEMBLE_API_KEY="your_api_key" - For detection, intelligence, and watermarking examples, export a media URL:
export MEDIA_URL="https://example.com/your-audio-file.wav"
cd python/raw
pip install -r requirements.txt
python websocket_streaming.py
cd js/raw
npm install
node websocket_streaming.js
| Example | Python | JS |
|---|---|---|
| WebSocket Streaming | raw | raw |
| Synchronous TTS | raw | raw |
| HTTP Streaming TTS | raw | raw |
| Speech-to-Speech | raw | raw |
| Deepfake Detection | raw | raw |
| Media Intelligence | raw | raw |
| Audio Watermarking | raw | raw |