You can now talk to Telnyx AI Assistants over a direct WebSocket connection, with no telephony required. Stream PCM16 audio from any web or mobile client and receive real-time transcription, assistant audio, and tool-call events over the same connection.
wss://api.telnyx.com/v2/ai/assistants/{assistant_id}/conversation and stream audio directly to your assistant, with no phone number or PSTN connection required.conversation.item.create and the assistant responds as if the user spoke it. Useful for hybrid voice and text interfaces.function_call_output. Build tools that access local device state or browser APIs.session.created frame.response.cancel for client-initiated barge-in without audio.wss://api.telnyx.com/v2/ai/assistants/{assistant_id}/conversation with your Telnyx API v2 key as the Bearer token.input_sample_rate and output_sample_rate to match your audio capture and playback configuration.input_audio_buffer.append and listen for session.created, transcription, and assistant-audio events.Learn more in the Telnyx WebSocket API reference or the Voice AI Assistants docs.