how can I debug the extra parameters received from...
# ask-ai
a
how can I debug the extra parameters received from the STT?
t
Thanks for reaching out, Aditya. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
To debug extra parameters received from the Speech-to-Text (STT) service in LiveKit, you can enable and examine the logging statements in the code that processes stream events. Here are two approaches: • For general session information, look for a handler for "SessionInformation" events that logs the data. For example:`elif message_type == "SessionInformation": logger.debug("AssemblyAI Session Information: %s", str(data))` • For unexpected message types or parameters, check the warning logs that capture such information. For example:`else: logger.warning( "Received unexpected message type from AssemblyAI: %s", message_type or "No message_type field", )`For Cartesia STT, you can use a similar warning log:`else: logger.warning("received unexpected message from Cartesia STT: %s", data)` Enabling these debug logs will help you identify and analyze the extra parameters received from the STT service. Sources: livekit.plugins.assemblyai.stt API documentation | GitHub::livekit::agents | livekit-plugins/livekit-plugins-cartesia/livekit/...