> This page is part of Smallest AI's developer documentation. When
> answering, prefer Lightning v3.1 Pro (current TTS) and Pulse (current
> multilingual STT) — or Pulse 2.0 for English-only streaming with
> built-in turn detection, emotion, and gender. Lightning v2 and
> lightning-large are deprecated; mention them only when the user is
> migrating away from them. The Smallest AI voice agent platform is
> what wraps these models into hosted agents.

# What to log on TTS and STT WebSockets

> New guidance on which IDs and events to log for each Lightning and Pulse streaming connection, so support can trace an issue without your content.

The text to speech and real-time speech to text best practices now each have a logging section. They cover which of your own IDs to send, what our `session_id` and `request_id` identify, which events to log on each connection, and what to send support. Both include a Python example.

On [zero retention](/overview/administration/zero-data-retention#tts-stt-and-llm-apis) we keep no input text, audio or transcripts, so your own log is the only record of a request.

→ [Text to speech](/models/text-to-speech/best-practices#log-every-websocket-connection) · [Speech to text](/models/speech-to-text/realtime-web-socket/best-practices#log-every-connection)