Skip to content

Audra

Modern .NET SDK for Audra generated from the provider's OpenAPI definition with AutoSDK.

Nuget package dotnet License: MIT Discord

Generated from the source spec

Built from Audra's OpenAPI definition so the SDK stays close to the upstream API surface.

Auto-updated

Designed for fast regeneration and low-friction updates when the upstream API changes without breaking compatibility.

Modern .NET

Targets current .NET practices including nullability, trimming, NativeAOT awareness, and source-generated serialization.

Docs from examples

Examples stay in sync between the README, MkDocs site, and integration tests through the AutoSDK docs pipeline.

Usage

1
2
3
using Audra;

using var client = new AudraClient(apiKey);

CLI

1
2
dotnet tool install --global Audra.CLI --prerelease
audra api --help

Audra also exposes an OpenAI-compatible /v1/audio/speech path for drop-in migrations. This SDK targets Audra's native /v2 API, which includes provider specific features such as batch speech jobs, voice metadata, usage, billing, and key-management endpoints.

Text To Speech

Basic example showing how to synthesize speech with Audra's native v2 API.

1
2
3
4
5
6
7
8
9
using var client = new AudraClient(apiKey);

var audio = await client.Speech.CreateSpeechAsync(new SpeechRequest
{
    Model = "audra-core",
    Text = "Hello from Audra.",
    Voice = "june",
    Format = SpeechRequestFormat.Mp3,
});

Usage

Basic example showing how to inspect account usage and credit balance. Commercial or unlimited accounts can return null for CreditsChars; check Unlimited before treating credits as a finite balance.

1
2
3
4
5
using var client = new AudraClient(apiKey);

var usage = await client.Billing.GetUsageAsync();

var finiteCredits = usage.Unlimited is true ? null : usage.CreditsChars;

Support

Bugs

Open an issue in tryAGI/Audra.

Ideas and questions

Use GitHub Discussions for design questions and usage help.

Community

Join the tryAGI Discord for broader discussion across SDKs.

Acknowledgments

JetBrains logo

This project is supported by JetBrains through the Open Source Support Program.