AssemblyAI outlined Python TTS workflows for one-shot WAV output, WebSocket streaming, barge-in handling and keep-alive sessions.
├── app/ │ ├── __init__.py # Global logging init (INFO level) │ ├── main.py # FastAPI application entry point │ ├── config.py # Environment-specific settings (dev/test/prod) │ └── routers/ # API route ...
Checkout example_client.py for an example on how to use the client. The DTCClient class should contain common logic only, and custom logic should go in a child class (ExampleDTCClient for example) The ...
AssemblyAI published a tutorial for building a voice agent directly on WebSockets with streaming STT, LLM Gateway and TTS.