Skip to main content
OpenAI OpenAI provides speech-to-text (Whisper, GPT-4o Transcribe) and text-to-speech (TTS-1, GPT-4o Mini TTS) capabilities alongside its LLM offerings. Netra helps you trace audio operations, monitor transcription accuracy, and track voice synthesis performance.

Installation

Usage

Initialize Netra before using OpenAI audio APIs: Set your Netra endpoint and API key before you call Netra.init(). Without NETRA_OTLP_ENDPOINT, the SDK prints spans to the console instead of sending them to Netra, and your dashboard stays empty.
Set these wherever your app runs, including Docker containers and CI jobs.

Examples

Speech-to-Text with Whisper

Track transcription operations using Netra decorators:

Text-to-Speech

Track TTS generation using Netra decorators:

Manual Span Creation with Action Tracking

For detailed control over tracing:

Supported Models

Speech-to-Text

Text-to-Speech

Next Steps

Last modified on November 5, 2026