Skip to main content
Google Gemini Google Gemini provides text-to-speech capabilities through its generative AI models, enabling natural voice synthesis directly from the Gemini API. Netra helps you trace TTS operations, monitor synthesis performance, and analyze usage patterns.

Installation

Usage

Initialize Netra before using Gemini 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

Text-to-Speech with Gemini

Track TTS generation using Netra decorators:

Manual Span Creation with Action Tracking

For detailed control over tracing:

Supported Models

Next Steps

Last modified on November 5, 2026