6. API & Integration
Echo exposes a robust, low-latency API and SDK ecosystem that allows Web3 projects, DAOs, and crypto-native communities to embed project-trained voice agents directly into their communication hubs.
REST & WebSocket Endpoints
/ask (POST): Accepts text or streamed STT packets; returns generated text plus TTS audio URL or buffer.
/speak (POST): Converts arbitrary text into a project’s configured voice output, with optional SSML controls.
/upload_dataset (PUT): Secure admin upload for new project data—whitepapers, governance docs, tokenomics, community chat logs—triggering re-indexing.
/retrain_dataset (POST): Initiates incremental RAG re-training on updated dataset shards with version tagging.
/languages (GET): Returns supported language list and available voice-persona metadata.
SDKs & Client Libraries
JavaScript/TypeScript: Browser & Node modules with WebSocket audio stream handling for dApp frontends and DAO dashboards.
Python: Async-ready package for backend services, bot frameworks, and community infrastructure.
Go & Rust (Coming Q1 ’26): Optimized for high-throughput blockchain middleware, validators, and decentralized service layers.
Last updated